refac
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
class="p-0.5 rounded-md text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition"
|
class="p-0.5 rounded-md text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition"
|
||||||
on:click|stopPropagation={() => {
|
on:click|stopPropagation={() => {
|
||||||
show = false;
|
show = false;
|
||||||
showSettings.set(true);
|
showSettings.set('tools');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -31,11 +31,16 @@
|
|||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
export let show = false;
|
export let show: boolean | string = false;
|
||||||
|
|
||||||
$: if (show) {
|
$: if (show) {
|
||||||
|
if (typeof show === 'string') {
|
||||||
|
selectedTab = show;
|
||||||
|
show = true;
|
||||||
|
}
|
||||||
addScrollListener();
|
addScrollListener();
|
||||||
} else {
|
} else {
|
||||||
|
selectedTab = 'general';
|
||||||
removeScrollListener();
|
removeScrollListener();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user