Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
54b5a8a4
Commit
54b5a8a4
authored
Jul 09, 2021
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/annotations/annotations.vue
View file @
54b5a8a4
...
...
@@ -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
;
...
...
src/css/global.scss
View file @
54b5a8a4
...
...
@@ -24,3 +24,7 @@
.custom-font
*
{
font-family
:
'tido'
;
}
.q-tab
{
opacity
:
1
!
important
;
}
src/index.template.html
View file @
54b5a8a4
...
...
@@ -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
"
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment