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); this._super(...arguments);
const parentController = this.controllerFor("adminCustomizeThemes"); const parentController = this.controllerFor("adminCustomizeThemes");
parentController.setProperties({ parentController.setProperties({
editingTheme: false, editingTheme: false,
currentTab: model.get("component") ? COMPONENTS : THEMES currentTab: model.get("component") ? COMPONENTS : THEMES
@ -26,7 +27,8 @@ export default Ember.Route.extend({
parentController: parentController, parentController: parentController,
allThemes: parentController.get("model"), allThemes: parentController.get("model"),
colorSchemeId: model.get("color_scheme_id"), 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); this.handleHighlight(model);

View File

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