mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
UX: Editing theme name stays active when switching themes.
* Also fix length of input field.
This commit is contained in:
parent
3658be42f5
commit
3ac18b92b3
@ -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);
|
||||
|
@ -2,6 +2,12 @@
|
||||
.show-current-style {
|
||||
padding-left: 2%;
|
||||
width: 68%;
|
||||
|
||||
.title {
|
||||
input {
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.themes-list {
|
||||
|
Loading…
Reference in New Issue
Block a user