This commit is contained in:
J. Nick Koston
2025-10-13 11:05:50 -10:00
parent b4d62f23f4
commit 4b4906318a

View File

@@ -495,26 +495,30 @@ class DataEntryFlowDialog extends LitElement {
dialogClosedCallback: this._params!.dialogClosedCallback, dialogClosedCallback: this._params!.dialogClosedCallback,
}); });
} else if (_step.next_flow[0] === "options_flow") { } else if (_step.next_flow[0] === "options_flow") {
showOptionsFlowDialog( if (_step.type === "create_entry") {
this._params!.dialogParentElement!, showOptionsFlowDialog(
_step.result!, this._params!.dialogParentElement!,
{ _step.result!,
continueFlowId: _step.next_flow[1], {
navigateToResult: this._params!.navigateToResult, continueFlowId: _step.next_flow[1],
dialogClosedCallback: this._params!.dialogClosedCallback, navigateToResult: this._params!.navigateToResult,
} dialogClosedCallback: this._params!.dialogClosedCallback,
); }
);
}
} else if (_step.next_flow[0] === "config_subentries_flow") { } else if (_step.next_flow[0] === "config_subentries_flow") {
showSubConfigFlowDialog( if (_step.type === "create_entry") {
this._params!.dialogParentElement!, showSubConfigFlowDialog(
_step.result!, this._params!.dialogParentElement!,
_step.next_flow[0], _step.result!,
{ _step.next_flow[0],
continueFlowId: _step.next_flow[1], {
navigateToResult: this._params!.navigateToResult, continueFlowId: _step.next_flow[1],
dialogClosedCallback: this._params!.dialogClosedCallback, navigateToResult: this._params!.navigateToResult,
} dialogClosedCallback: this._params!.dialogClosedCallback,
); }
);
}
} else { } else {
this.closeDialog(); this.closeDialog();
showAlertDialog(this._params!.dialogParentElement!, { showAlertDialog(this._params!.dialogParentElement!, {