File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 24
24
let showUpdates = false ;
25
25
let updates = [];
26
26
let main;
27
- let rowColors;
28
27
let inactive = false ;
29
28
let platform;
30
29
let initError;
601
600
</div >
602
601
{/if }
603
602
</div >
604
- <div class ="main { rowColors || ' ' } " bind:this ={main }>
603
+ <div class ="main" bind:this ={main }>
605
604
{#if loading }
606
605
<Loader abortClick ={abortUpdates } {abort } />
607
606
{:else if inactive }
Original file line number Diff line number Diff line change 13
13
14
14
function slide (node , params ) {
15
15
return {
16
- delay: params .delay || 0 ,
17
- duration: params .duration || 150 ,
18
- easing: params .easing || quintInOut,
16
+ delay: params? .delay || 0 ,
17
+ duration: params? .duration || 150 ,
18
+ easing: params? .easing || quintInOut,
19
19
css: (t ) => ` transform: translateX(${ (t - 1 ) * 18 } rem);` ,
20
20
};
21
21
}
Original file line number Diff line number Diff line change 5
5
export let allItemsToggleItem;
6
6
7
7
let disabled;
8
- let rowColorsAll;
8
+ let rowColorsAll = " " ;
9
9
10
10
$: list = allItems .sort ((a , b ) => a .name .localeCompare (b .name ));
11
11
14
14
} else if (list .length > 1 && list .length % 2 !== 0 ) {
15
15
rowColorsAll = " odd--all" ;
16
16
} else {
17
- rowColorsAll = undefined ;
17
+ rowColorsAll = " " ;
18
18
}
19
19
</script >
20
20
21
21
{#if allItems .length }
22
- <div class ="items view--all {rowColorsAll || ' ' }" class:disabled >
22
+ <div class ="items view--all {rowColorsAll }" class:disabled >
23
23
{#each list as item (item .filename )}
24
24
<PopupItem
25
25
enabled ={! item .disabled }
You can’t perform that action at this time.
0 commit comments