We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa50aa2 + badec99 commit 2849195Copy full SHA for 2849195
frontend/express/public/javascripts/countly/vue/components/nav.js
@@ -144,7 +144,10 @@
144
}
145
},
146
methods: {
147
- setTab: function(name) {
+ setTab: function(name, isDisabled) {
148
+ if (isDisabled) {
149
+ return;
150
+ }
151
var tab = this.tabs.filter(function(t) {
152
return t.name === name;
153
});
@@ -197,7 +200,7 @@
197
200
:style="{cursor: tab.disabled ? \'not-allowed\' : \'pointer\', opacity: tab.disabled ? 0.5 : 1}"\
198
201
v-bind:key="tab.name"\
199
202
v-bind:class="[tabClasses, activeClasses(tab.name)]"\
- v-on:click="setTab(tab.name)"\
203
+ v-on:click="setTab(tab.name, tab.disabled)"\
204
v-if="(!tab.type) || (tab.type === \'mobile\' && !apps[app_id].type) || (apps[app_id].type === tab.type)"\
205
>\
206
<slot :name="tab.name" :tab="tab">\
0 commit comments