0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 20:20:29 +01:00
discourse-custom-wizard/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);
}
});