This commit is contained in:
mattyatea 2024-04-24 04:02:03 +09:00
parent 6c2b755b99
commit 2c61ec4d28

View file

@ -101,9 +101,21 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="matchQuery([i18n.ts._role._options.mentionMax, 'mentionLimit'])">
<template #label>{{ i18n.ts._role._options.mentionMax }}</template>
<template #suffix>{{ role.policies.mentionLimit }}</template>
<MkInput v-model="role.policies.mentionLimit.value" type="number">
</MkInput>
<template #suffix>
<span v-if="role.policies.mentionMax.useDefault" :class="$style.useDefaultLabel">{{ i18n.ts._role.useBaseValue }}</span>
<span v-else>{{ role.policies.mentionMax.value }}</span>
<span :class="$style.priorityIndicator"><i :class="getPriorityIcon(role.policies.mentionMax)"></i></span>
</template>
<div class="_gaps">
<MkSwitch v-model="role.policies.mentionMax.useDefault" :readonly="readonly">
<template #label>{{ i18n.ts._role.useBaseValue }}</template>
</MkSwitch>
<MkInput v-model="role.policies.mentionMax.value" :disabled="role.policies.mentionMax.useDefault" type="number" :readonly="readonly">
</MkInput>
<MkRange v-model="role.policies.mentionMax.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>
<MkFolder v-if="matchQuery([i18n.ts._role._options.gtlAvailable, 'gtlAvailable'])">
<template #label>{{ i18n.ts._role._options.gtlAvailable }}</template>