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: merge the code for push notification (#2292)
Danny Xu4864c21122b8
diff --git a/frontend/src/components/CreateInstanceForm.vue b/frontend/src/components/CreateInstanceForm.vueindex 1cf4f2fa84..1d256423e5 100644--- a/frontend/src/components/CreateInstanceForm.vue+++ b/frontend/src/components/CreateInstanceForm.vue@@ -498,23 +498,17 @@ const testConnection = () => {title: t("instance.successfully-connected-instance"),});} else {+ let title = t("instance.failed-to-connect-instance");if (connectionInfo.host == "localhost" ||connectionInfo.host == "127.0.0.1") {- pushNotification({- module: "bytebase",- style: "CRITICAL",- title: t("instance.failed-to-connect-instance-localhost"),- description: resultSet.error,- // Manual hide, because user may need time to inspect the error- manualHide: true,- });+ title = t("instance.failed-to-connect-instance-localhost");}pushNotification({module: "bytebase",style: "CRITICAL",- title: t("instance.failed-to-connect-instance"),+ title: title,description: resultSet.error,// Manual hide, because user may need time to inspect the errormanualHide: true,diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vueindex 57ab3ce177..03313fda58 100644--- a/frontend/src/components/InstanceForm.vue+++ b/frontend/src/components/InstanceForm.vue@@ -765,23 +765,17 @@ const testConnection = () => {title: t("instance.successfully-connected-instance"),});} else {+ let title = t("instance.failed-to-connect-instance");if (connectionInfo.host == "localhost" ||connectionInfo.host == "127.0.0.1") {- pushNotification({- module: "bytebase",- style: "CRITICAL",- title: t("instance.failed-to-connect-instance-localhost"),- description: resultSet.error,- // Manual hide, because user may need time to inspect the error- manualHide: true,- });+ title = t("instance.failed-to-connect-instance-localhost");}pushNotification({module: "bytebase",style: "CRITICAL",- title: t("instance.failed-to-connect-instance"),+ title: title,description: resultSet.error,// Manual hide, because user may need time to inspect the errormanualHide: true,