FIX: refresh admin/customize/themes route after import

Fixes an issue where the imported color schemes of a theme were not available immediately in the UI.
This commit is contained in:
Penar Musaraj 2019-01-31 14:29:09 -05:00
parent 0dfcbdeb54
commit 3500acf2f6
1 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,7 @@ export default Ember.Route.extend({
},
addTheme(theme) {
const all = this.modelFor("adminCustomizeThemes");
all.pushObject(theme);
this.refresh();
this.transitionTo("adminCustomizeThemes.show", theme.get("id"));
},