1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/routes/admin-wizards-custom.js.es6
2017-09-23 10:34:07 +08:00

19 Zeilen
389 B
JavaScript

import CustomWizard from '../models/custom-wizard';
export default Discourse.Route.extend({
model() {
return CustomWizard.findAll();
},
setupController(controller, model){
controller.set("model", model.toArray());
},
actions: {
willTransition(transition) {
if (transition.intent.name === 'adminWizardsCustom') {
this.refresh();
}
}
}
});