Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: ui fix and optimize (#11518)
ecmadao81ab182a7d01
diff --git a/frontend/src/assets/azure-devops-logo.svg b/frontend/src/assets/azure-devops-logo.svgindex b4f2d8383a..f510c8a54b 100644--- a/frontend/src/assets/azure-devops-logo.svg+++ b/frontend/src/assets/azure-devops-logo.svg@@ -1,17 +1,12 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- viewBox="0 0 1231.2 929.9" style="enable-background:new 0 0 1231.2 929.9;" xml:space="preserve">-<style type="text/css">- .st0{fill:url(#SVGID_1_);}-</style>-<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="634.5555" y1="535.7045" x2="634.5555" y2="-173.7056" gradientTransform="matrix(1 0 0 1 -18.96 283.48)">- <stop offset="0" style="stop-color:#2974BA"/>- <stop offset="0.16" style="stop-color:#2F7BBF"/>- <stop offset="0.53" style="stop-color:#4B8CCB"/>- <stop offset="0.82" style="stop-color:#5F98D2"/>- <stop offset="1" style="stop-color:#679CD3"/>-</linearGradient>-<path class="st0" d="M971.6,241.9v433.5l-178,146L517.7,720.8v99.7L361.5,616.2l455.3,35.6V261.5L971.6,241.9z M819.9,263.8- L564.4,108.4v101.9l-234.5,69l-70.3,90.3v205.2l100.6,44.5v-263L819.9,263.8z"/>-</svg>+<svg width="713" height="714" viewBox="0 0 713 714" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M712.6 133.9V567.4L534.6 713.4L258.7 612.8V712.5L102.5 508.2L557.8 543.8V153.5L712.6 133.9ZM560.9 155.8L305.4 0.399902V102.3L70.8996 171.3L0.599609 261.6V466.8L101.2 511.3V248.3L560.9 155.8Z" fill="url(#paint0_linear_5546_176)"/>+<defs>+<linearGradient id="paint0_linear_5546_176" x1="356.595" y1="711.184" x2="356.595" y2="1.77431" gradientUnits="userSpaceOnUse">+<stop stop-color="#2974BA"/>+<stop offset="0.16" stop-color="#2F7BBF"/>+<stop offset="0.53" stop-color="#4B8CCB"/>+<stop offset="0.82" stop-color="#5F98D2"/>+<stop offset="1" stop-color="#679CD3"/>+</linearGradient>+</defs>+</svg>diff --git a/frontend/src/components/IdentityProviderCreateForm.vue b/frontend/src/components/IdentityProviderCreateForm.vueindex 1d0a77afd9..f61673874a 100644--- a/frontend/src/components/IdentityProviderCreateForm.vue+++ b/frontend/src/components/IdentityProviderCreateForm.vue@@ -179,7 +179,7 @@</p><BBTextFieldv-model:value="configForOAuth2.clientSecret"- required+ :required="isCreating":disabled="!allowEdit"class="mt-1 w-full":placeholder="diff --git a/frontend/src/components/ProjectWebhookForm.vue b/frontend/src/components/ProjectWebhookForm.vueindex 281e5c3ec4..40b885ac4e 100644--- a/frontend/src/components/ProjectWebhookForm.vue+++ b/frontend/src/components/ProjectWebhookForm.vue@@ -188,6 +188,7 @@<div><div class="text-md leading-6 font-medium text-main">{{ $t("project.webhook.triggering-activity") }}+ <span class="text-red-600">*</span></div><divv-for="(item, index) in projectWebhookV1ActivityItemList()"@@ -230,8 +231,11 @@@confirm="deleteWebhook"/><div class="space-x-3">- <NButton @click.prevent="cancel">- {{ allowEdit ? $t("common.cancel") : $t("common.back") }}+ <NButton v-if="create" @click.prevent="cancel">+ {{ $t("common.cancel") }}+ </NButton>+ <NButton v-else-if="valueChanged" @click.prevent="discardChanges">+ {{ $t("common.discard-changes") }}</NButton><template v-if="allowEdit"><NButton@@ -376,6 +380,10 @@ const allowCreate = computed(() => {);});+const discardChanges = () => {+ state.webhook = cloneDeep(props.webhook);+};+const isEventOn = (type: Activity_Type) => {return state.webhook.notificationTypes.includes(type);};diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vueindex 027ee4c859..c11c6cac41 100644--- a/frontend/src/components/RepositoryForm.vue+++ b/frontend/src/components/RepositoryForm.vue@@ -58,12 +58,13 @@{{ $t("repository.database-group-description") }}</div><DatabaseGroupSelect- v-model:selected="repositoryConfig.databaseGroup"+ :selected="repositoryConfig.databaseGroup"class="mt-2"style="width: 100%":project="project.name":clearable="true":select-first-as-default="false"+ @update:selected="(val) => (repositoryConfig.databaseGroup = val ?? '')"/></div><div>diff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vueindex 33fd91f1f8..76592acea1 100644--- a/frontend/src/components/RepositoryPanel.vue+++ b/frontend/src/components/RepositoryPanel.vue@@ -50,16 +50,16 @@<div v-if="allowEdit" class="ml-3 flex items-center space-x-3"><NButtonv-if="allowUpdate"- @click.prevent="discardChanges":disabled="state.processing"+ @click.prevent="discardChanges">{{ $t("common.discard-changes") }}</NButton><NButtontype="primary":disabled="!allowUpdate"- @click.prevent="doUpdate":loading="state.processing"+ @click.prevent="doUpdate">{{ $t("common.update") }}</NButton>@@ -110,15 +110,19 @@ const initConfig = computed();const state = reactive<LocalState>({- repositoryConfig: initConfig.value,+ repositoryConfig: { ...initConfig.value },processing: false,});+const discardChanges = () => {+ state.repositoryConfig = { ...initConfig.value };+ state.processing = false;+};+watch(() => props.vcsConnector,() => {- state.repositoryConfig = initConfig.value;- state.processing = false;+ discardChanges();},{ deep: true, immediate: true });@@ -173,11 +177,6 @@ const deleteConnector = async () => {}};-const discardChanges = () => {- state.repositoryConfig = initConfig.value;- state.processing = false;-};-const doUpdate = async () => {if (state.processing) {return;diff --git a/frontend/src/components/v2/Select/DatabaseGroupSelect.vue b/frontend/src/components/v2/Select/DatabaseGroupSelect.vueindex 28dafbbeba..a5654fbac7 100644--- a/frontend/src/components/v2/Select/DatabaseGroupSelect.vue+++ b/frontend/src/components/v2/Select/DatabaseGroupSelect.vue@@ -31,6 +31,8 @@ const props = withDefaults(}>(),{clearable: false,+ selected: undefined,+ environment: undefined,selectFirstAsDefault: true,});diff --git a/frontend/src/views/SettingWorkspaceMailDelivery.vue b/frontend/src/views/SettingWorkspaceMailDelivery.vueindex 56df52d6f0..5221f42e4d 100644--- a/frontend/src/views/SettingWorkspaceMailDelivery.vue+++ b/frontend/src/views/SettingWorkspaceMailDelivery.vue@@ -108,10 +108,11 @@@update:checked="handleToggleUseEmptyPassword"/></div>- <NInput+ <BBTextFieldv-model:value="state.mailDeliverySetting.password"class="text-main w-full h-max mt-2":disabled="state.useEmptyPassword"+ :required="isCreating":placeholder="'PASSWORD - INPUT_ONLY'"/></div>@@ -227,10 +228,12 @@ const state = reactive<LocalState>({const store = useWorkspaceMailDeliverySettingStore();+const isCreating = computed(+ () => state.originMailDeliverySetting === undefined+);+const mailDeliverySettingButtonText = computed(() => {- return state.originMailDeliverySetting === undefined- ? t("common.create")- : t("common.update");+ return isCreating.value ? t("common.create") : t("common.update");});const allowMailDeliveryActionButton = computed(() => {diff --git a/frontend/src/views/SettingWorkspaceVCSDetail.vue b/frontend/src/views/SettingWorkspaceVCSDetail.vueindex 62f1e7b522..e460a44752 100644--- a/frontend/src/views/SettingWorkspaceVCSDetail.vue+++ b/frontend/src/views/SettingWorkspaceVCSDetail.vue@@ -26,16 +26,16 @@<div class="space-x-3"><NButtonv-if="allowUpdate"- @click.prevent="cancel":disabled="state.loading"+ @click.prevent="cancel">{{ $t("common.discard-changes") }}</NButton><NButtontype="primary":disabled="!allowUpdate"- @click.prevent="doUpdate":loading="state.loading"+ @click.prevent="doUpdate">{{ $t("common.update") }}</NButton>@@ -100,11 +100,12 @@ const initState = computed();const resetState = () => {- state.config = initState.value;+ state.config = { ...initState.value };+ state.loading = false;};const state = reactive<LocalState>({- config: initState.value,+ config: { ...initState.value },loading: false,});