diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index b5a8019..462ed91 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -2,40 +2,26 @@ - + {{ productName }} V{{ version }} - + - + - + メニュー - + +
+ +
@@ -54,19 +40,19 @@ import { useAuthStore } from 'stores/useAuthStore'; const authStore = useAuthStore(); const essentialLinks: EssentialLinkProps[] = [ -{ + { title: 'ホーム', caption: '設計書から導入する', icon: 'home', link: '/', - target:'_self' + target: '_self' }, { title: 'フローエディター', caption: 'イベントを設定する', icon: 'account_tree', link: '/#/FlowChart', - target:'_self' + target: '_self' }, // { // title: '条件エディター', @@ -76,8 +62,8 @@ const essentialLinks: EssentialLinkProps[] = [ // target:'_self' // }, { - title:'', - isSeparator:true + title: '', + isSeparator: true }, // { // title:'Kintone ポータル', @@ -151,8 +137,33 @@ const essentialLinks: EssentialLinkProps[] = [ // } ]; +const adminLinks: EssentialLinkProps[] = [ + { + title: 'ユーザー', + caption: 'ユーザー設定する', + icon: 'manage_accounts', + link: '/#/user', + target: '_self' + }, + { + title: 'テナント', + caption: 'テナント設定', + icon: 'domain', + link: '/#/domain', + target: '_self' + }, + { + title: 'アカウント', + caption: 'アカウント設定', + icon: 'assignment_ind', + link: '/#/userDomain', + target: '_self' + }, +] + const version = process.env.version; const productName = process.env.productName; + onMounted(() => { authStore.toggleLeftMenu(); }); @@ -160,4 +171,8 @@ onMounted(() => { function toggleLeftDrawer() { authStore.toggleLeftMenu(); } +function isAdmin(){ + const permission = authStore.permissions; + return permission === 'admin' +}