Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): move Add rule button to top right of each section (#18213)
p0ny089f112519e2
diff --git a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RulesPanel/RulesSection.vue b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RulesPanel/RulesSection.vueindex 61926c4aad..f4c026247f 100644--- a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RulesPanel/RulesSection.vue+++ b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RulesPanel/RulesSection.vue@@ -4,12 +4,20 @@<div class="font-medium text-base">{{ sourceDisplayText }}</div>- <NTooltip>- <template #trigger>- <HelpCircleIcon class="w-4 h-4 text-control-light cursor-help" />- </template>- {{ $t("custom-approval.rule.first-match-wins") }}- </NTooltip>+ <div class="flex items-center gap-x-2">+ <NButton size="small" @click="handleAddRule">+ <template #icon>+ <PlusIcon class="w-4" />+ </template>+ {{ $t("custom-approval.approval-flow.add-rule") }}+ </NButton>+ <NTooltip>+ <template #trigger>+ <HelpCircleIcon class="w-4 h-4 text-control-light cursor-help" />+ </template>+ {{ $t("custom-approval.rule.first-match-wins") }}+ </NTooltip>+ </div></div><NDataTable@@ -21,15 +29,6 @@:row-key="(row: LocalApprovalRule) => row.uid"/>- <div class="mt-2">- <NButton size="small" @click="handleAddRule">- <template #icon>- <PlusIcon class="w-4" />- </template>- {{ $t("custom-approval.approval-flow.add-rule") }}- </NButton>- </div>-<RuleEditModalv-model:show="showModal":mode="modalMode"