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 @@
<q-tab
v-for="annotationTab in annotationTabs"
:key="annotationTab.key"
:disabled="annotationTab.key===currentTab"
:label="$t(annotationTab.collectionTitle)"
:name="annotationTab.key"
@click="activeTab(annotationTab.key,annotationTab.type)"
......@@ -155,6 +156,10 @@ export default {
},
methods: {
activeTab(key, types) {
if (this.currentTab === key) {
return;
}
this.currentTab = key;
this.selectedAll = false;
this.selectedNone = true;
......
......@@ -24,3 +24,7 @@
.custom-font * {
font-family: 'tido';
}
.q-tab {
opacity: 1 !important;
}
......@@ -31,7 +31,7 @@
-->
<script id="tido-config" type="application/json">
{
"entrypoint": "",
"entrypoint": "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/syriac/collection.json",
"annotations": {
"show": true,
"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