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