Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
FIX: Show an empty submission list of no wizard is selected
Dieser Commit ist enthalten in:
Ursprung
8f42268e88
Commit
be3a479270
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
|
@ -8,6 +8,12 @@ export default DiscourseRoute.extend({
|
||||||
return CustomWizardAdmin.submissions(params.wizardId);
|
return CustomWizardAdmin.submissions(params.wizardId);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
afterModel(model) {
|
||||||
|
if (model === null) {
|
||||||
|
return this.transitionTo("adminWizardsSubmissions");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
setupController(controller, model) {
|
setupController(controller, model) {
|
||||||
const { fields, submissions } = formatModel(model);
|
const { fields, submissions } = formatModel(model);
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren