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: highlight selected plan check type (#7594)
Liu Jif4adcad4deec
diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vueindex dfea381706..8cba84535c 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadge.vue@@ -8,7 +8,7 @@<buttonclass="inline-flex items-center px-3 py-0.5 rounded-full text-sm border border-control-border":class="buttonClasses"- @click="$emit('click')"+ @click="clickable && $emit('click')"><template v-if="status === PlanCheckRun_Status.RUNNING"><TaskSpinner class="-ml-1 mr-1.5 h-4 w-4 text-info" />@@ -56,6 +56,8 @@ import {const props = defineProps<{planCheckRunList: PlanCheckRun[];type: PlanCheckRun_Type;+ clickable?: boolean;+ selected?: boolean;}>();defineEmits<{@@ -118,17 +120,17 @@ const buttonClasses = computed(() => {}const styleList: string[] = [textColor];- // if (props.allowSelection) {- // styleList.push("cursor-pointer", `hover:${bgHoverColor}`);- // if (props.stickySelection && checkRun.type == state.selectedTaskCheckType) {- // styleList.push(bgHoverColor);- // } else {- // styleList.push(bgColor);- // }- // } else {- // styleList.push(bgColor);- // styleList.push("cursor-default");- // }+ if (props.clickable) {+ styleList.push("cursor-pointer", `hover:${bgHoverColor}`);+ if (props.selected) {+ styleList.push(bgHoverColor);+ } else {+ styleList.push(bgColor);+ }+ } else {+ styleList.push(bgColor);+ styleList.push("cursor-default");+ }styleList.push("cursor-pointer", `hover:${bgHoverColor}`);styleList.push(bgColor);diff --git a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vueindex 9cb37cacc8..0db03d5df7 100644--- a/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue+++ b/frontend/src/components/IssueV1/components/PlanCheckSection/PlanCheckBar/PlanCheckBadgeBar.vue@@ -4,6 +4,8 @@v-for="group in planCheckRunsGroupByType":key="group.type":type="group.type"+ :clickable="true"+ :selected="group.type === selectedType":plan-check-run-list="group.list"@click="$emit('select-type', group.type)"/>