From 1fcca626ca642d0855ea286719a909a6fb48348e Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 10 May 2025 12:30:55 -0400 Subject: [PATCH] fix error when expanding conditional role --- locales/index.d.ts | 12 ++++++++++++ packages/frontend/src/pages/admin-user.vue | 11 ++++++++--- sharkey-locales/en-US.yml | 3 +++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index fd5c5fd845..29ed11c3bc 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -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 */ diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue index bab40a90bd..859e24d9f3 100644 --- a/packages/frontend/src/pages/admin-user.vue +++ b/packages/frontend/src/pages/admin-user.vue @@ -170,9 +170,14 @@ SPDX-License-Identifier: AGPL-3.0-only
-
Assigned:
-
Period: {{ new Date(info.roleAssigns.find(a => a.roleId === role.id).expiresAt).toLocaleString() }}
-
Period: {{ i18n.ts.indefinitely }}
+ +
diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index 165f477f21..41cc7c48e8 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -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."