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:
parent
91cf0d15ae
commit
891f0ccd18
4 changed files with 14 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue