Commit c73bc32 1 parent 7def10e commit c73bc32 Copy full SHA for c73bc32
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import {kStyleIdPrefix, UCD} from '@/js/consts';
2
2
import { $toggleDataset } from '@/js/dom' ;
3
3
import { animateElement , scrollElementIntoView } from '@/js/dom-util' ;
4
4
import { breakWord , template } from '@/js/localization' ;
5
+ import * as prefs from '@/js/prefs' ;
5
6
import { TO_CSS } from '@/js/sections-util' ;
6
7
import { isEmptyObj , sessionStore , t } from '@/js/util' ;
7
8
import { filterAndAppend } from './filters' ;
@@ -299,6 +300,10 @@ export function updateTotal(delta) {
299
300
}
300
301
installed . dataset . total = numStyles ;
301
302
elLinksParent ??= ( elLinks = $id ( 'links' ) ) . parentNode ;
303
+ const det = elLinks . $ ( 'details' ) ;
304
+ const prefId = 'manage.links.expanded' ;
305
+ $toggleDataset ( det , 'pref' , numStyles && prefId ) ;
306
+ det . open = ! numStyles || prefs . __values [ prefId ] ;
302
307
if ( ! numStyles ) installed . after ( elLinks ) ;
303
308
else elLinksParent . append ( elLinks ) ;
304
309
$rootCL . toggle ( 'empty' , ! numStyles ) ;
You can’t perform that action at this time.
0 commit comments