From 171caed8b5e066de149e120ebfb069f4285d310b Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Mon, 25 Dec 2023 11:40:52 +0100 Subject: [PATCH] chore: minor docs changes --- .github/workflows/test-e2e-win.yml | 2 +- README.md | 3 ++- src/renderer/components/TheScratchpad.vue | 2 ++ src/renderer/stores/workspaces.ts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-e2e-win.yml b/.github/workflows/test-e2e-win.yml index 77a3b36a..81d1cfff 100644 --- a/.github/workflows/test-e2e-win.yml +++ b/.github/workflows/test-e2e-win.yml @@ -1,4 +1,4 @@ -name: Test end-to-end [WINDOWS] +name: Test end-to-end on: push: diff --git a/README.md b/README.md index 70fbd962..171add87 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ # Antares SQL Client -![GitHub package.json version](https://img.shields.io/github/package-json/v/fabio286/antares) ![GitHub](https://img.shields.io/github/license/fabio286/antares) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ffabio286%2Fantares%2Fbadge&style=flat)](https://actions-badge.atrox.dev/fabio286/antares/goto) ![Mastodon Follow](https://img.shields.io/mastodon/follow/%20110860460902482117?domain=https%3A%2F%2Ffosstodon.org&style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/AntaresSQL?style=social)](https://twitter.com/AntaresSQL) [![Plant a Tree](https://raw.githubusercontent.com/Fabio286/treedom-badge/master/svg/plant-a-tree.svg)](https://www.treedom.net/en/user/fabio-di-stasio/event/antares-for-the-planet) +![GitHub package.json version](https://img.shields.io/github/package-json/v/fabio286/antares) ![GitHub](https://img.shields.io/github/license/fabio286/antares) ![Test e2e](https://github.com/antares-sql/antares/actions/workflows/test-e2e-win.yml/badge.svg?branch=develop) ![Mastodon Follow](https://img.shields.io/mastodon/follow/%20110860460902482117?domain=https%3A%2F%2Ffosstodon.org&style=social) [![Twitter Follow](https://img.shields.io/twitter/follow/AntaresSQL?style=social)](https://twitter.com/AntaresSQL) [![Plant a Tree](https://raw.githubusercontent.com/Fabio286/treedom-badge/master/svg/plant-a-tree.svg)](https://www.treedom.net/en/user/fabio-di-stasio/event/antares-for-the-planet) Antares is an SQL client based on [Electron.js](https://github.com/electron/electron) and [Vue.js](https://github.com/vuejs/vue) that aims to become a useful tool, especially for developers. Our target is to support as many databases as possible, and all major operating systems, including the ARM versions. @@ -35,6 +35,7 @@ We are actively working on it, hoping to provide new cool features, improvements - Fake table data filler to generate tons of data for test purpose. - Query suggestions and auto complete. - Query history: search through the last 1000 queries. +- Save queries, notes or todo. - SSH tunnel support. - Manual commit mode. - Import and export database dumps. diff --git a/src/renderer/components/TheScratchpad.vue b/src/renderer/components/TheScratchpad.vue index 36cd29f0..dc8e46f9 100644 --- a/src/renderer/components/TheScratchpad.vue +++ b/src/renderer/components/TheScratchpad.vue @@ -283,6 +283,8 @@ const selectQuery = (query: string) => { const workspace = getWorkspace(selectedWorkspace.value); const selectedTab = getWorkspaceTab(workspace.selectedTab); + if (workspace.connectionStatus !== 'connected') return; + if (selectedTab.type === 'query') { updateTabContent({ tab: selectedTab.uid, diff --git a/src/renderer/stores/workspaces.ts b/src/renderer/stores/workspaces.ts index 44b02508..3ac67ec9 100644 --- a/src/renderer/stores/workspaces.ts +++ b/src/renderer/stores/workspaces.ts @@ -66,7 +66,7 @@ export interface Workspace { uid: string; client?: ClientCode; database?: string; - connectionStatus: string; + connectionStatus: 'connected' | 'disconnected' | 'failed'; selectedTab: string; searchTerm: string; tabs: WorkspaceTab[];