Add locales and new navbar entry

This commit is contained in:
Marie 2024-12-12 21:45:54 +01:00
parent d18317a7c8
commit dddfdf8a13
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555
5 changed files with 26 additions and 4 deletions

View file

@ -3,7 +3,8 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { computed, reactive } from 'vue';
import { computed, defineAsyncComponent, reactive } from 'vue';
import { ui } from '@@/js/config.js';
import { clearCache } from './scripts/clear-cache.js';
import { instance } from './instance.js';
import { $i } from '@/account.js';
@ -12,7 +13,6 @@ import { openInstanceMenu } from '@/ui/_common_/common.js';
import { lookup } from '@/scripts/lookup.js';
import * as os from '@/os.js';
import { i18n } from '@/i18n.js';
import { ui } from '@@/js/config.js';
import { unisonReload } from '@/scripts/unison-reload.js';
export const navbarItemDef = reactive({
@ -74,6 +74,18 @@ export const navbarItemDef = reactive({
show: computed(() => $i != null && !$i.movedTo),
to: '/following-feed',
},
scheduledNotes: {
title: i18n.ts.scheduledNotes,
icon: 'ti ti-calendar-event',
show: computed(() => $i != null),
action: (ev) => {
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkSchedulePostListDialog.vue')), {}, {
closed: () => {
dispose();
},
});
},
},
lists: {
title: i18n.ts.lists,
icon: 'ti ti-list',