UX: Editing theme name stays active when switching themes.

* Also fix length of input field.
This commit is contained in:
Guo Xiang Tan 2019-04-11 12:55:32 +08:00
parent 3658be42f5
commit 3ac18b92b3
2 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,7 @@ export default Ember.Route.extend({
this._super(...arguments);
const parentController = this.controllerFor("adminCustomizeThemes");
parentController.setProperties({
editingTheme: false,
currentTab: model.get("component") ? COMPONENTS : THEMES
@ -26,7 +27,8 @@ export default Ember.Route.extend({
parentController: parentController,
allThemes: parentController.get("model"),
colorSchemeId: model.get("color_scheme_id"),
colorSchemes: parentController.get("model.extras.color_schemes")
colorSchemes: parentController.get("model.extras.color_schemes"),
editingName: false
});
this.handleHighlight(model);

View File

@ -2,6 +2,12 @@
.show-current-style {
padding-left: 2%;
width: 68%;
.title {
input {
width: 80%;
}
}
}
.themes-list {