mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 08:53:42 +08:00
cafe637407
Reorganizes theme create/upload flows into one install flow Adds quick list of popular themes/components with one-click installation
24 lines
497 B
JavaScript
24 lines
497 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: {
|
|
installModal() {
|
|
showModal("admin-install-theme", { admin: true });
|
|
},
|
|
|
|
addTheme(theme) {
|
|
this.refresh();
|
|
this.transitionTo("adminCustomizeThemes.show", theme.get("id"));
|
|
}
|
|
}
|
|
});
|