feat: add tools to navbar (#12204)
* feat: add tools to navbar * docs(changelog): ナビゲーションバーにツールを追加しました
This commit is contained in:
parent
e2f34e3db6
commit
cf026e4c72
3 changed files with 46 additions and 27 deletions
|
@ -6,7 +6,7 @@
|
|||
import { computed, reactive } from 'vue';
|
||||
import { $i } from '@/account.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { openInstanceMenu } from '@/ui/_common_/common.js';
|
||||
import { openInstanceMenu, openToolsMenu } from '@/ui/_common_/common.js';
|
||||
import { lookup } from '@/scripts/lookup.js';
|
||||
import * as os from '@/os.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
@ -142,6 +142,13 @@ export const navbarItemDef = reactive({
|
|||
openInstanceMenu(ev);
|
||||
},
|
||||
},
|
||||
tools: {
|
||||
title: i18n.ts.tools,
|
||||
icon: 'ti ti-tool',
|
||||
action: (ev) => {
|
||||
openToolsMenu(ev);
|
||||
},
|
||||
},
|
||||
reload: {
|
||||
title: i18n.ts.reload,
|
||||
icon: 'ti ti-refresh',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue