mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #4513 from PaulAdamDavis/close-tag-settings-on-exit
Close tag settings menu on transition
This commit is contained in:
commit
05a400384d
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,12 @@ import PaginationRouteMixin from 'ghost/mixins/pagination-route';
|
||||||
|
|
||||||
var TagsRoute = AuthenticatedRoute.extend(CurrentUserSettings, PaginationRouteMixin, {
|
var TagsRoute = AuthenticatedRoute.extend(CurrentUserSettings, PaginationRouteMixin, {
|
||||||
|
|
||||||
|
actions: {
|
||||||
|
willTransition: function () {
|
||||||
|
this.send('closeSettingsMenu');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
beforeModel: function () {
|
beforeModel: function () {
|
||||||
if (!this.get('config.tagsUI')) {
|
if (!this.get('config.tagsUI')) {
|
||||||
return this.transitionTo('settings.general');
|
return this.transitionTo('settings.general');
|
||||||
|
|
Loading…
Add table
Reference in a new issue