ロールの編集画面
This commit is contained in:
		
							parent
							
								
									93422ec87a
								
							
						
					
					
						commit
						ef1221669b
					
				|  | @ -7037,6 +7037,10 @@ export interface Locale extends ILocale { | |||
|              * リストのインポートを許可 | ||||
|              */ | ||||
|             "canImportUserLists": string; | ||||
|             /** | ||||
|              * サーバーサイドのノートの下書きの作成可能数 | ||||
|              */ | ||||
|             "noteDraftLimit": string; | ||||
|         }; | ||||
|         "_condition": { | ||||
|             /** | ||||
|  |  | |||
|  | @ -1818,6 +1818,7 @@ _role: | |||
|     canImportFollowing: "フォローのインポートを許可" | ||||
|     canImportMuting: "ミュートのインポートを許可" | ||||
|     canImportUserLists: "リストのインポートを許可" | ||||
|     noteDraftLimit: "サーバーサイドのノートの下書きの作成可能数" | ||||
|   _condition: | ||||
|     roleAssignedTo: "マニュアルロールにアサイン済み" | ||||
|     isLocal: "ローカルユーザー" | ||||
|  |  | |||
|  | @ -106,6 +106,7 @@ export const ROLE_POLICIES = [ | |||
| 	'canImportFollowing', | ||||
| 	'canImportMuting', | ||||
| 	'canImportUserLists', | ||||
| 	'noteDraftLimit', | ||||
| ] as const; | ||||
| 
 | ||||
| // なんか動かない
 | ||||
|  |  | |||
|  | @ -690,6 +690,25 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</MkRange> | ||||
| 				</div> | ||||
| 			</MkFolder> | ||||
| 
 | ||||
| 			<MkFolder v-if="matchQuery([i18n.ts._role._options.noteDraftLimit, 'noteDraftLimit'])"> | ||||
| 				<template #label>{{ i18n.ts._role._options.noteDraftLimit }}</template> | ||||
| 				<template #suffix> | ||||
| 					<span v-if="role.policies.noteDraftLimit.useDefault" :class="$style.useDefaultLabel">{{ i18n.ts._role.useBaseValue }}</span> | ||||
| 					<span v-else>{{ role.policies.noteDraftLimit.value }}</span> | ||||
| 					<span :class="$style.priorityIndicator"><i :class="getPriorityIcon(role.policies.noteDraftLimit)"></i></span> | ||||
| 				</template> | ||||
| 				<div class="_gaps"> | ||||
| 					<MkSwitch v-model="role.policies.noteDraftLimit.useDefault" :readonly="readonly"> | ||||
| 						<template #label>{{ i18n.ts._role.useBaseValue }}</template> | ||||
| 					</MkSwitch> | ||||
| 					<MkInput v-model="role.policies.noteDraftLimit.value" :disabled="role.policies.noteDraftLimit.useDefault" type="number" :readonly="readonly"> | ||||
| 					</MkInput> | ||||
| 					<MkRange v-model="role.policies.noteDraftLimit.priority" :min="0" :max="2" :step="1" easing :textConverter="(v) => v === 0 ? i18n.ts._role._priority.low : v === 1 ? i18n.ts._role._priority.middle : v === 2 ? i18n.ts._role._priority.high : ''"> | ||||
| 						<template #label>{{ i18n.ts._role.priority }}</template> | ||||
| 					</MkRange> | ||||
| 				</div> | ||||
| 			</MkFolder> | ||||
| 		</div> | ||||
| 	</FormSlot> | ||||
| </div> | ||||
|  |  | |||
|  | @ -256,6 +256,13 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 								<template #label>{{ i18n.ts.enable }}</template> | ||||
| 							</MkSwitch> | ||||
| 						</MkFolder> | ||||
| 
 | ||||
| 						<MkFolder v-if="matchQuery([i18n.ts._role._options.noteDraftLimit, 'noteDraftLimit'])"> | ||||
| 							<template #label>{{ i18n.ts._role._options.noteDraftLimit }}</template> | ||||
| 							<template #suffix>{{ policies.noteDraftLimit }}</template> | ||||
| 							<MkInput v-model="policies.noteDraftLimit" type="number" :min="0"> | ||||
| 							</MkInput> | ||||
| 						</MkFolder> | ||||
| 					</div> | ||||
| 				</MkFolder> | ||||
| 				<MkButton primary rounded @click="create"><i class="ti ti-plus"></i> {{ i18n.ts._role.new }}</MkButton> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue