mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Close tag settings menu on transition
Closes #4504 - Adds a `willTransition` action that closes the tag settings menu when transitioning to another page
This commit is contained in:
parent
09658f8377
commit
8373d1d5b0
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, {
|
||||
|
||||
actions: {
|
||||
willTransition: function () {
|
||||
this.send('closeSettingsMenu');
|
||||
}
|
||||
},
|
||||
|
||||
beforeModel: function () {
|
||||
if (!this.get('config.tagsUI')) {
|
||||
return this.transitionTo('settings.general');
|
||||
|
|
Loading…
Reference in a new issue