diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-24 19:35:52 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-24 19:35:52 +0000 |
| commit | 4827e4d972f8ee11e606693e24ae4ca21711c6b1 (patch) | |
| tree | 53e18494681c6c5c6a6f31d27d034e9681b89029 /src/components/tab_switcher/tab_switcher.js | |
| parent | 28f777cb8a94f7a28edb6f99a62a6b864c2aa8dc (diff) | |
| parent | fa6210872f7f22c4c8ce1a1603426ebf03bf2050 (diff) | |
Merge branch 'feature/add-sticker-picker' into 'develop'
Feature/add sticker picker
See merge request pleroma/pleroma-fe!885
Diffstat (limited to 'src/components/tab_switcher/tab_switcher.js')
| -rw-r--r-- | src/components/tab_switcher/tab_switcher.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index 67835231..a5fe019c 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -45,7 +45,19 @@ export default Vue.component('tab-switcher', { classesTab.push('active') classesWrapper.push('active') } - + if (slot.data.attrs.image) { + return ( + <div class={ classesWrapper.join(' ')}> + <button + disabled={slot.data.attrs.disabled} + onClick={this.activateTab(index)} + class={classesTab.join(' ')}> + <img src={slot.data.attrs.image} title={slot.data.attrs['image-tooltip']}/> + {slot.data.attrs.label ? '' : slot.data.attrs.label} + </button> + </div> + ) + } return ( <div class={ classesWrapper.join(' ')}> <button |
