File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/lib/components/WorkBooks Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5858 }),
5959 );
6060
61- let isShowReplenishment: boolean = $state (replenishmentWorkBooksStore .canView ());
62-
6361 function countReadableWorkbooks(workbooks : WorkbooksList ): number {
6462 const results = workbooks .reduce ((count , workbook : WorkbookList ) => {
6563 const hasReadPermission = canRead (workbook .isPublished , userId , workbook .authorId );
160158
161159 <div class =" mt-4 md:mt-0 pb-4" >
162160 <Toggle
163- checked ={isShowReplenishment }
161+ checked ={replenishmentWorkBooksStore . canView () }
164162 onclick ={() => replenishmentWorkBooksStore .toggleView ()}
165163 aria-label =" Toggle visibility of replenishment workbooks for curriculum"
166164 >
169167 </div >
170168 </div >
171169
172- {#if isShowReplenishment }
170+ {#if replenishmentWorkBooksStore . canView () }
173171 <WorkBookBaseTable
174172 {workbookType }
175173 workbooks ={replenishedWorkbooks }
You can’t perform that action at this time.
0 commit comments