mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
fix error when expanding conditional role
This commit is contained in:
parent
b9109e5bb3
commit
1fcca626ca
3 changed files with 23 additions and 3 deletions
12
locales/index.d.ts
vendored
12
locales/index.d.ts
vendored
|
@ -13129,6 +13129,18 @@ export interface Locale extends ILocale {
|
|||
* The date is the IP address was first acknowledged.
|
||||
*/
|
||||
"ipTip": string;
|
||||
/**
|
||||
* Period
|
||||
*/
|
||||
"rolePeriod": string;
|
||||
/**
|
||||
* Assigned
|
||||
*/
|
||||
"roleAssigned": string;
|
||||
/**
|
||||
* automatic
|
||||
*/
|
||||
"roleAutomatic": string;
|
||||
/**
|
||||
* Translation timeout
|
||||
*/
|
||||
|
|
|
@ -170,9 +170,14 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<button v-else class="_button" :class="$style.roleUnassign" disabled><i class="ti ti-ban"></i></button>
|
||||
</div>
|
||||
<div v-if="expandedRoles.includes(role.id)" :class="$style.roleItemSub">
|
||||
<div>Assigned: <MkTime :time="info.roleAssigns.find(a => a.roleId === role.id).createdAt" mode="detail"/></div>
|
||||
<div v-if="info.roleAssigns.find(a => a.roleId === role.id).expiresAt">Period: {{ new Date(info.roleAssigns.find(a => a.roleId === role.id).expiresAt).toLocaleString() }}</div>
|
||||
<div v-else>Period: {{ i18n.ts.indefinitely }}</div>
|
||||
<template v-if="info.roleAssigns.some(a => a.roleId === role.id)">
|
||||
<div>{{ i18n.ts.roleAssigned }}: <MkTime :time="info.roleAssigns.find(a => a.roleId === role.id).createdAt" mode="detail"/></div>
|
||||
<div v-if="info.roleAssigns.find(a => a.roleId === role.id).expiresAt">{{ i18n.ts.rolePeriod }}: {{ new Date(info.roleAssigns.find(a => a.roleId === role.id).expiresAt).toLocaleString() }}</div>
|
||||
<div v-else>{{ i18n.ts.rolePeriod }}: {{ i18n.ts.indefinitely }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div>{{ i18n.ts.roleAssigned }}: {{ i18n.ts.roleAutomatic }}</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -580,6 +580,9 @@ updateRemoteUser: "Refresh remote data"
|
|||
activityPub: "Activity Pub"
|
||||
ip: "IP"
|
||||
ipTip: "The date is the IP address was first acknowledged."
|
||||
rolePeriod: "Period"
|
||||
roleAssigned: "Assigned"
|
||||
roleAutomatic: "automatic"
|
||||
|
||||
translationTimeoutLabel: "Translation timeout"
|
||||
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
|
||||
|
|
Loading…
Add table
Reference in a new issue