1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 18:48:55 +08:00

add Tab tests

This commit is contained in:
lana-k
2021-02-10 17:46:45 +01:00
parent 9e41dab43e
commit d68616b543
3 changed files with 257 additions and 10 deletions

View File

@@ -15,13 +15,19 @@
<div id="bottomPane" ref="bottomPane">
<view-switcher :view.sync="view" />
<div v-show="view === 'table'" class="table-view">
<div v-show="result === null && !isGettingResults && !error" class="table-preview">
<div
v-show="result === null && !isGettingResults && !error"
class="table-preview result-before"
>
Run your query and get results here
</div>
<div v-show="isGettingResults" class="table-preview">
<div v-show="isGettingResults" class="table-preview result-in-progress">
Fetching results...
</div>
<div v-show="result === undefined && !isGettingResults && !error" class="table-preview">
<div
v-show="result === undefined && !isGettingResults && !error"
class="table-preview result-empty"
>
No rows retrieved according to your query
</div>
<div v-show="error" class="table-preview error">
@@ -103,7 +109,7 @@ export default {
this.isGettingResults = true
this.result = null
this.error = null
this.$db.execute(this.query + ';')
return this.$db.execute(this.query + ';')
.then(result => {
this.result = result
})