diff --git a/ui-ngx/src/app/modules/home/components/api-key/add-api-key-dialog.component.html b/ui-ngx/src/app/modules/home/components/api-key/add-api-key-dialog.component.html index 579b3f57f2..738372a74e 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/add-api-key-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/api-key/add-api-key-dialog.component.html @@ -45,6 +45,7 @@
+ api-key.expiration-date @for (value of expirationTimeOptions; track value) { diff --git a/ui-ngx/src/app/modules/home/components/api-key/api-keys-table-config.ts b/ui-ngx/src/app/modules/home/components/api-key/api-keys-table-config.ts index d3102d9fe6..b2b26ee51e 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/api-keys-table-config.ts +++ b/ui-ngx/src/app/modules/home/components/api-key/api-keys-table-config.ts @@ -81,7 +81,7 @@ export class ApiKeysTableConfig extends EntityTableConfig { new DateEntityTableColumn('createdTime', 'common.created-time', this.datePipe, '170px'), new EntityTableColumn('description', 'api-key.description', '100%', (entity) => this.customTranslate.transform(entity?.description), () => ({}), true, () => ({}), - (entity) => entity?.description.length > 80 ? this.customTranslate.transform(entity.description) : undefined, false, + (entity) => entity?.description.length > 40 ? this.customTranslate.transform(entity.description) : undefined, false, { name: this.translate.instant('api-key.edit-description'), icon: 'edit', diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index 8c9720828a..ca868845c4 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -1000,7 +1000,8 @@ "delete-api-key-text": "Be careful, after the confirmation key will become unrecoverable.", "delete-api-keys-title": "Are you sure you want to delete { count, plural, =1 {1 API key} other {# API keys} }?", "delete-api-keys-text": "Be careful, after the confirmation all selected keys will become unrecoverable.", - "date": "Date", + "expiration-date": "Expiration date", + "date": "date", "description": "Description", "disable": "Disable", "edit-description": "Edit description",