0
Fork 0
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:
Hannah Wolfe 2014-11-24 16:27:15 +00:00
commit 05a400384d

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