1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

include selected sidebar tab in url query params

This commit is contained in:
Harvey Kandola 2017-03-07 14:44:34 +00:00
parent 91cf0d15ae
commit 891f0ccd18
4 changed files with 14 additions and 10 deletions

View file

@ -30,13 +30,13 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
name: "",
description: ""
},
currentTab: '',
tab: '',
init() {
this._super(...arguments);
if (is.empty(this.get('currentTab'))) {
this.set('currentTab', 'attachments');
if (is.empty(this.get('tab'))) {
this.set('tab', 'attachments');
}
},
@ -65,7 +65,7 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
actions: {
onChangeTab(tab) {
this.set('currentTab', tab);
this.set('tab', tab);
},
onTagChange(tags) {