1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/routes/admin-wizards-api.js.es6

16 Zeilen
327 B
Text

import CustomWizardApi from '../models/custom-wizard-api';
export default Discourse.Route.extend({
model(params) {
if (params.service === 'new') {
return {};
} else {
return CustomWizardApi.find(params.service);
}
},
setupController(controller, model){
2019-05-31 09:54:11 +02:00
controller.set("api", model);
}
});