Commit 54b5a8a4 authored by dindigala's avatar dindigala
Browse files

fix: disable/not be clickable when there is only one tab

parent 83bedb91
Pipeline #210829 passed with stages
in 5 minutes and 5 seconds
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<q-tab <q-tab
v-for="annotationTab in annotationTabs" v-for="annotationTab in annotationTabs"
:key="annotationTab.key" :key="annotationTab.key"
:disabled="annotationTab.key===currentTab"
:label="$t(annotationTab.collectionTitle)" :label="$t(annotationTab.collectionTitle)"
:name="annotationTab.key" :name="annotationTab.key"
@click="activeTab(annotationTab.key,annotationTab.type)" @click="activeTab(annotationTab.key,annotationTab.type)"
...@@ -155,6 +156,10 @@ export default { ...@@ -155,6 +156,10 @@ export default {
}, },
methods: { methods: {
activeTab(key, types) { activeTab(key, types) {
if (this.currentTab === key) {
return;
}
this.currentTab = key; this.currentTab = key;
this.selectedAll = false; this.selectedAll = false;
this.selectedNone = true; this.selectedNone = true;
......
...@@ -24,3 +24,7 @@ ...@@ -24,3 +24,7 @@
.custom-font * { .custom-font * {
font-family: 'tido'; font-family: 'tido';
} }
.q-tab {
opacity: 1 !important;
}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
--> -->
<script id="tido-config" type="application/json"> <script id="tido-config" type="application/json">
{ {
"entrypoint": "", "entrypoint": "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/syriac/collection.json",
"annotations": { "annotations": {
"show": true, "show": true,
"types": [ "types": [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment