From 432b31edc705b570b6540327f0d360e95ccfcd66 Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Mon, 7 Aug 2023 16:46:04 -0600 Subject: [PATCH 1/2] Move deploy tokens into card Changelog: changed --- .../components/new_deploy_token.vue | 30 +++++-- .../components/revoke_button.vue | 4 +- .../deploy_token_translations.js | 3 +- .../shared/deploy_tokens/_index.html.haml | 10 +-- .../shared/deploy_tokens/_table.html.haml | 82 ++++++++++++------- locale/gitlab.pot | 14 +++- .../features/deploy_token_shared_examples.rb | 8 +- 7 files changed, 93 insertions(+), 58 deletions(-) diff --git a/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue b/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue index 7ec3ec3f84d8c4..a56fce98f854d0 100644 --- a/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue +++ b/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue @@ -8,7 +8,9 @@ import { GlFormInputGroup, GlSprintf, GlLink, + GlAlert, } from '@gitlab/ui'; +import { MountingPortal } from 'portal-vue'; import { createAlert, VARIANT_INFO } from '~/alert'; import axios from '~/lib/utils/axios_utils'; import { formatDate } from '~/lib/utils/datetime_utility'; @@ -26,6 +28,8 @@ export default { ClipboardButton, GlSprintf, GlLink, + GlAlert, + MountingPortal, }, props: { @@ -170,12 +174,17 @@ export default {