discourse/app/assets/javascripts/admin/routes/admin-customize-themes.js.es6
Penar Musaraj cafe637407
UX: List popular themes and components in admin panel (#6997)
Reorganizes theme create/upload flows into one install flow
Adds quick list of popular themes/components with one-click installation
2019-02-20 14:58:31 -05:00

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"));
}
}
});