mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 10:23:40 +08:00
3500acf2f6
Fixes an issue where the imported color schemes of a theme were not available immediately in the UI.
28 lines
583 B
JavaScript
28 lines
583 B
JavaScript
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default Ember.Route.extend({
|
|
model() {
|
|
return this.store.findAll("theme");
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
this._super(controller, model);
|
|
controller.set("editingTheme", false);
|
|
},
|
|
|
|
actions: {
|
|
importModal() {
|
|
showModal("admin-import-theme", { admin: true });
|
|
},
|
|
|
|
addTheme(theme) {
|
|
this.refresh();
|
|
this.transitionTo("adminCustomizeThemes.show", theme.get("id"));
|
|
},
|
|
|
|
showCreateModal() {
|
|
showModal("admin-create-theme", { admin: true });
|
|
}
|
|
}
|
|
});
|