Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 12:22:54 +01:00
20 Zeilen
389 B
Text
20 Zeilen
389 B
Text
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|