🎨
This commit is contained in:
		
							parent
							
								
									da6f955d58
								
							
						
					
					
						commit
						bedb98185e
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		|  | @ -937,7 +937,7 @@ _role: | |||
|   edit: "ロールの編集" | ||||
|   name: "ロール名" | ||||
|   description: "ロールの説明" | ||||
|   type: "ロールの種類" | ||||
|   permission: "ロールの権限" | ||||
|   descriptionOfType: "モデレーターは基本的なモデレーションに関する操作を行えます。\n管理者はインスタンスの全ての設定を変更できます。" | ||||
|   isPublic: "ロールを公開" | ||||
|   descriptionOfIsPublic: "ロールにアサインされたユーザーを誰でも見ることができます。また、ユーザーのプロフィールでこのロールが表示されます。" | ||||
|  |  | |||
|  | @ -13,8 +13,8 @@ | |||
| 		<template #caption>#RRGGBB</template> | ||||
| 	</MkInput> | ||||
| 
 | ||||
| 	<MkSelect v-model="roleType" :readonly="readonly"> | ||||
| 		<template #label>{{ i18n.ts._role.type }}</template> | ||||
| 	<MkSelect v-model="rolePermission" :readonly="readonly"> | ||||
| 		<template #label>{{ i18n.ts._role.permission }}</template> | ||||
| 		<template #caption><div v-html="i18n.ts._role.descriptionOfType.replaceAll('\n', '<br>')"></div></template> | ||||
| 		<option value="normal">{{ i18n.ts.normalUser }}</option> | ||||
| 		<option value="moderator">{{ i18n.ts.moderator }}</option> | ||||
|  | @ -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(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue