1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

Fix wrong trigger of autocomplete #15

This commit is contained in:
lana-k
2020-11-11 22:42:44 +01:00
parent 3f0a7597a2
commit c5fa3e903a
4 changed files with 32 additions and 16 deletions

View File

@@ -6,15 +6,15 @@
</div>
<div>
<button
v-if="$store.state.tabs.length > 0"
v-if="currentQuery"
class="primary"
:disabled="currentQuery && !$store.state.schema || !currentQuery.query"
:disabled="currentQuery && (!$store.state.schema || !currentQuery.query)"
@click="currentQuery.execute"
>
Run
</button>
<button
v-if="$store.state.tabs.length > 0"
v-if="currentQuery"
class="primary"
:disabled="currentQuery && !currentQuery.isUnsaved"
@click="checkQueryBeforeSave"