Update navbar.ts
This commit is contained in:
parent
f9efc37eb1
commit
830c952e3d
|
@ -12,6 +12,7 @@ import * as os from '@/os.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { ui } from '@/config.js';
|
import { ui } from '@/config.js';
|
||||||
import { unisonReload } from '@/scripts/unison-reload.js';
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
||||||
|
import {defaultStore} from "@/store.js";
|
||||||
|
|
||||||
export const navbarItemDef = reactive({
|
export const navbarItemDef = reactive({
|
||||||
notifications: {
|
notifications: {
|
||||||
|
@ -148,19 +149,6 @@ export const navbarItemDef = reactive({
|
||||||
action: (ev) => {
|
action: (ev) => {
|
||||||
location.reload();
|
location.reload();
|
||||||
},
|
},
|
||||||
},
|
|
||||||
switchLightOrDarkMode: {
|
|
||||||
title: i18n.ts.switchLightOrDarkMode,
|
|
||||||
icon: 'ti ti-palette',
|
|
||||||
action: (ev) => {
|
|
||||||
const mode = defaultStore.makeGetterSetter('darkMode');
|
|
||||||
mode.set(!mode.get());
|
|
||||||
},
|
|
||||||
},
|
|
||||||
customEmojis: {
|
|
||||||
title: i18n.ts.customEmojis,
|
|
||||||
icon: 'ti ti-icons',
|
|
||||||
to: '/about#emojis',
|
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
title: i18n.ts.profile,
|
title: i18n.ts.profile,
|
||||||
|
@ -168,11 +156,4 @@ export const navbarItemDef = reactive({
|
||||||
show: computed(() => $i != null),
|
show: computed(() => $i != null),
|
||||||
to: `/@${$i?.username}`,
|
to: `/@${$i?.username}`,
|
||||||
},
|
},
|
||||||
clearCache: {
|
|
||||||
title: i18n.ts.clearCache,
|
|
||||||
icon: 'ti ti-trash',
|
|
||||||
action: (ev) => {
|
|
||||||
clearCache();
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue