1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 10:08:52 +08:00

disable Run button without schema

This commit is contained in:
lana-k
2020-10-20 19:14:37 +02:00
parent 5a8b2584ff
commit b39a6bdb86

View File

@@ -11,7 +11,13 @@
<codemirror v-model="query" :options="cmOptions" @changes="onCmChange" ref="codemirror" />
</div>
<div class="run-btn-container">
<button class="primary run-btn" @click="execEditorContents">Run</button>
<button
class="primary run-btn"
@click="execEditorContents"
:disabled="!$store.state.schema"
>
Run
</button>
</div>
</div>
<div slot="right-pane" id="bottomPane" ref="bottomPane">