aboutsummaryrefslogtreecommitdiff
path: root/src/components/tab_switcher/tab_switcher.js
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-02-08 05:31:06 -0500
committerdave <starpumadev@gmail.com>2019-02-08 05:31:06 -0500
commitb57b4c6e45ca612a890e594942e86faab5a946e0 (patch)
tree2ba781c2b0926c899f56ef07e9ba3784d7a9701f /src/components/tab_switcher/tab_switcher.js
parent62b3b9b8d4a71912d9e55e812f537f057698e323 (diff)
#291 - disable empty tabs in user profile panel
Diffstat (limited to 'src/components/tab_switcher/tab_switcher.js')
-rw-r--r--src/components/tab_switcher/tab_switcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js
index f9c3f927..423df258 100644
--- a/src/components/tab_switcher/tab_switcher.js
+++ b/src/components/tab_switcher/tab_switcher.js
@@ -37,7 +37,7 @@ export default Vue.component('tab-switcher', {
return (
<div class={ classesWrapper.join(' ')}>
- <button onClick={this.activateTab(index)} class={ classesTab.join(' ') }>{slot.data.attrs.label}</button>
+ <button disabled={slot.data.attrs.disabled} onClick={this.activateTab(index)} class={ classesTab.join(' ') }>{slot.data.attrs.label}</button>
</div>
)
})