From bedb98185e2639007287656c7e5bede4a9b5fb66 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 13 Jan 2023 08:23:52 +0900 Subject: [PATCH] :art: --- locales/ja-JP.yml | 2 +- packages/frontend/src/pages/admin/roles.editor.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 6a0c23043..933bb285c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -937,7 +937,7 @@ _role: edit: "ロールの編集" name: "ロール名" description: "ロールの説明" - type: "ロールの種類" + permission: "ロールの権限" descriptionOfType: "モデレーターは基本的なモデレーションに関する操作を行えます。\n管理者はインスタンスの全ての設定を変更できます。" isPublic: "ロールを公開" descriptionOfIsPublic: "ロールにアサインされたユーザーを誰でも見ることができます。また、ユーザーのプロフィールでこのロールが表示されます。" diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index 621475d9d..b8e45cda5 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -13,8 +13,8 @@ - - + + @@ -132,7 +132,7 @@ const role = props.role; let name = $ref(role?.name ?? 'New Role'); let description = $ref(role?.description ?? ''); -let roleType = $ref(role?.isAdministrator ? 'administrator' : role?.isModerator ? 'moderator' : 'normal'); +let rolePermission = $ref(role?.isAdministrator ? 'administrator' : role?.isModerator ? 'moderator' : 'normal'); let color = $ref(role?.color ?? null); let isPublic = $ref(role?.isPublic ?? false); let canEditMembersByModerator = $ref(role?.canEditMembersByModerator ?? false); @@ -165,8 +165,8 @@ async function save() { name, description, color: color === '' ? null : color, - isAdministrator: roleType === 'administrator', - isModerator: roleType === 'moderator', + isAdministrator: rolePermission === 'administrator', + isModerator: rolePermission === 'moderator', isPublic, canEditMembersByModerator, options: getOptions(), @@ -177,8 +177,8 @@ async function save() { name, description, color: color === '' ? null : color, - isAdministrator: roleType === 'administrator', - isModerator: roleType === 'moderator', + isAdministrator: rolePermission === 'administrator', + isModerator: rolePermission === 'moderator', isPublic, canEditMembersByModerator, options: getOptions(),