Skip to content
This repository was archived by the owner on Oct 24, 2018. It is now read-only.

Commit f8c6a64

Browse files
committed
rename enabled to visible
1 parent 12e997b commit f8c6a64

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/Tab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
data: () => ({
2222
isActive: false,
23-
isEnabled: true,
23+
isVisible: true,
2424
}),
2525
2626
computed: {

src/components/Tabs.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:class="{ 'is-active': tab.isActive }"
66
class="tabs-component-tab"
77
role="presentation"
8-
v-show="tab.isEnabled"
8+
v-show="tab.isVisible"
99
>
1010

1111
<a v-html="tab.header"
@@ -90,19 +90,19 @@
9090
9191
expiringStorage.set(this.storageKey, selectedTab.hash, this.cacheLifetime);
9292
},
93-
setTabEnabled(hash, enabled) {
93+
setTabVisible(hash, visible) {
9494
const tab = this.findTab(hash);
9595
9696
if (! tab) {
9797
return;
9898
}
9999
100-
tab.isEnabled = enabled;
100+
tab.isVisible = visible;
101101
if (tab.isActive) {
102102
// if tab is active, set a different one as active
103-
tab.isActive = enabled;
103+
tab.isActive = visible;
104104
this.tabs.every(function(element, index, array) {
105-
if (element.isEnabled) {
105+
if (element.isVisible) {
106106
element.isActive = true;
107107
return false;
108108
}

0 commit comments

Comments
 (0)