diff --git a/src/App.vue b/src/App.vue index a638c288f5..882b427bbc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -75,6 +75,18 @@ watch(showConnectionDialog, (v) => { if (!v) connectionStore.stopEditing(); }); +function onConnectionConnectStarted(name: string) { + toast(t("connection.connecting", { name }), 30000); +} + +function onConnectionConnectSucceeded(name: string) { + toast(t("connection.connectSuccess", { name }), 2000); +} + +function onConnectionConnectFailed(message: string) { + toast(t("connection.connectFailed", { message }), 5000); +} + const activeTab = computed(() => queryStore.tabs.find((t) => t.id === queryStore.activeTabId) ); @@ -953,7 +965,13 @@ async function setupFileDrop() { - + diff --git a/src/components/connection/ConnectionDialog.vue b/src/components/connection/ConnectionDialog.vue index 81310cfc3e..5d18903fd6 100644 --- a/src/components/connection/ConnectionDialog.vue +++ b/src/components/connection/ConnectionDialog.vue @@ -1,5 +1,5 @@