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