diff --git a/CHANGELOG.md b/CHANGELOG.md index 48e8c975c..3aaa4524d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ You should also include the user name that made the change. - ユーザーごとにRenoteをミュートできるように - ノートごとに絵文字リアクションを受け取るか設定できるように - ロールの並び順を設定可能に +- enhance(client): 設定から自分のロールを確認できるように - enhance(client): DM作成時にメンションも含むように - enhance(client): フォロー申請のボタンのデザインを改善 - enhance(backend): OpenAPIエンドポイントを復旧 diff --git a/packages/frontend/src/pages/settings/index.vue b/packages/frontend/src/pages/settings/index.vue index a5619eab8..f1a450e18 100644 --- a/packages/frontend/src/pages/settings/index.vue +++ b/packages/frontend/src/pages/settings/index.vue @@ -134,6 +134,11 @@ const menuDef = computed(() => [{ text: i18n.ts.importAndExport, to: '/settings/import-export', active: currentPage?.route.name === 'import-export', + }, { + icon: 'ti ti-badges', + text: i18n.ts.roles, + to: '/settings/roles', + active: currentPage?.route.name === 'roles', }, { icon: 'ti ti-planet-off', text: i18n.ts.instanceMute, diff --git a/packages/frontend/src/pages/settings/roles.vue b/packages/frontend/src/pages/settings/roles.vue new file mode 100644 index 000000000..ba510dced --- /dev/null +++ b/packages/frontend/src/pages/settings/roles.vue @@ -0,0 +1,56 @@ + + + + {{ i18n.ts.rolesAssignedToMe }} + + + + + + {{ i18n.ts._role.policies }} + + + {{ policy }} ... {{ $i.policies[policy] }} + + + + + + + + + diff --git a/packages/frontend/src/router.ts b/packages/frontend/src/router.ts index 70576688b..c51c92bf0 100644 --- a/packages/frontend/src/router.ts +++ b/packages/frontend/src/router.ts @@ -49,6 +49,10 @@ export const routes = [{ path: '/profile', name: 'profile', component: page(() => import('./pages/settings/profile.vue')), + }, { + path: '/roles', + name: 'roles', + component: page(() => import('./pages/settings/roles.vue')), }, { path: '/privacy', name: 'privacy',