From 8373d1d5b04af9da134f9839bcabd97c4a07aa37 Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Sun, 23 Nov 2014 21:17:29 +0000 Subject: [PATCH] Close tag settings menu on transition Closes #4504 - Adds a `willTransition` action that closes the tag settings menu when transitioning to another page --- core/client/routes/settings/tags.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/client/routes/settings/tags.js b/core/client/routes/settings/tags.js index b59aa2bdef..5b6fd72878 100644 --- a/core/client/routes/settings/tags.js +++ b/core/client/routes/settings/tags.js @@ -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');