File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 4545 let totalMods: number ;
4646
4747 let searchField = search ;
48- let searchDisabled = true ;
49- let searchButtonClass = ' variant-filled-primary ' ;
50- const showPagination : boolean = $mods && ! $mods . error && ! $mods . fetching ;
48+ $ : showPagination = $mods && ! $mods . error && ! $mods . fetching ;
49+ $ : searchDisabled = searchField . length > 2 ;
50+ $ : searchButtonClass = searchDisabled ? ' variant-filled-primary ' : ' variant-filled-surface ' ;
5151
5252 let timer: number ;
5353 $ : {
54- if (searchField .length > 2 ) {
55- searchDisabled = false ;
56- searchButtonClass = ' variant-filled-primary' ;
57- } else {
58- searchDisabled = true ;
59- searchButtonClass = ' variant-filled-surface' ;
60- }
6154 clearTimeout (timer );
6255 timer = setTimeout (() => {
6356 if (searchField && searchField .length > 2 ) {
You can’t perform that action at this time.
0 commit comments