0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 12:20:27 +01:00
discourse-custom-wizard/assets/javascripts/discourse/routes/admin-wizards-api.js.es6
2019-05-31 17:54:11 +10:00

15 Zeilen
327 B
JavaScript

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){
controller.set("api", model);
}
});