Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Remove the click background to close feature in BBAlert and BBModal
天舟d129a53a0d06
diff --git a/frontend/src/bbkit/BBAlert.vue b/frontend/src/bbkit/BBAlert.vueindex fb0692cd1a..66f36245e8 100644--- a/frontend/src/bbkit/BBAlert.vue+++ b/frontend/src/bbkit/BBAlert.vue@@ -14,10 +14,7 @@To: "opacity-0"--><div class="fixed inset-0 transition-opacity" aria-hidden="true">- <div- class="absolute inset-0 bg-gray-500 opacity-75"- @click.self="clickBackground"- ></div>+ <div class="absolute inset-0 bg-gray-500 opacity-75"></div></div><!-- This element is to trick the browser into centering the modal contents. -->@@ -195,10 +192,6 @@ export default {type: String,default: "Cancel",},- backgroundClose: {- type: Boolean,- default: true,- },// Any payload pass through to "ok" and "cancel" eventspayload: {},},@@ -207,12 +200,6 @@ export default {emit("cancel", props.payload);};- const clickBackground = () => {- if (props.backgroundClose) {- cancel();- }- };-const escHandler = (e: KeyboardEvent) => {if (e.code == "Escape") {cancel();@@ -239,7 +226,6 @@ export default {return {okButtonStyle,cancel,- clickBackground,};},};diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vueindex 3e862f2b48..91fc728ea7 100644--- a/frontend/src/bbkit/BBModal.vue+++ b/frontend/src/bbkit/BBModal.vue@@ -4,7 +4,6 @@<template><divclass="fixed inset-0 w-full h-screen flex items-center justify-center z-50"- @click.self="closeIfShown"style="background-color: rgba(209, 213, 219, 0.8)"><div@@ -61,22 +60,12 @@ export default {type: Boolean,default: true,},- backgroundClose: {- type: Boolean,- default: true,- },},setup(props, { emit }) {const close = () => {emit("close");};- const closeIfShown = () => {- if (props.showClose && props.backgroundClose) {- close();- }- };-const escHandler = (e: KeyboardEvent) => {if (e.code == "Escape") {close();@@ -93,7 +82,6 @@ export default {return {close,- closeIfShown,};},};