0
Fork 0
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:
Paul Adam Davis 2014-11-23 21:17:29 +00:00
parent 09658f8377
commit 8373d1d5b0

View file

@ -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');