1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-30 15:58:06 +09:00

fix: remove nav buttons from initial selection on setting page (#2803)

This commit is contained in:
TAKAHASHI Shuuji 2024-04-13 02:22:34 +09:00 committed by GitHub
parent 14162f8bcb
commit 9c916e0932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ const defaultSelectedNavButtonNames = computed<NavButtonName[]>(() =>
: ['explore', 'local', 'federated', 'moreMenu'],
)
const navButtonNamesSetting = useLocalStorage<NavButtonName[]>(STORAGE_KEY_BOTTOM_NAV_BUTTONS, defaultSelectedNavButtonNames.value)
const selectedNavButtonNames = ref(navButtonNamesSetting.value)
const selectedNavButtonNames = ref<NavButtonName[]>([])
const selectedNavButtons = computed<NavButton[]>(() =>
selectedNavButtonNames.value.map(name =>