From 2cdf29b995d10c56f6fd7ac3805c3f7e72293ede Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 18 Sep 2023 21:36:35 +0800 Subject: [PATCH] Add support for display token after creation Signed-off-by: Ryan Wang --- console/src/constants/annotations.ts | 5 +++ .../PersonalAccessTokenCreationModal.vue | 39 +++++++++++++++++-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/console/src/constants/annotations.ts b/console/src/constants/annotations.ts index c3c16a56f91..76ae27bab3a 100644 --- a/console/src/constants/annotations.ts +++ b/console/src/constants/annotations.ts @@ -18,3 +18,8 @@ export enum rbacAnnotations { export enum contentAnnotations { PREFERRED_EDITOR = "content.halo.run/preferred-editor", } + +// pat +export enum patAnnotations { + ACCESS_TOKEN = "security.halo.run/access-token", +} diff --git a/console/src/modules/system/users/components/PersonalAccessTokenCreationModal.vue b/console/src/modules/system/users/components/PersonalAccessTokenCreationModal.vue index f2128ef2818..679f434eb97 100644 --- a/console/src/modules/system/users/components/PersonalAccessTokenCreationModal.vue +++ b/console/src/modules/system/users/components/PersonalAccessTokenCreationModal.vue @@ -1,10 +1,13 @@