From 193cb46d6007d544fa37febb8887026046010173 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 3 May 2021 15:47:03 +0200 Subject: [PATCH] Config flow: Show next when not last step (#9078) --- src/dialogs/config-flow/step-flow-form.ts | 4 +++- src/translations/en.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialogs/config-flow/step-flow-form.ts b/src/dialogs/config-flow/step-flow-form.ts index 75aeb92d0b..5c569873d6 100644 --- a/src/dialogs/config-flow/step-flow-form.ts +++ b/src/dialogs/config-flow/step-flow-form.ts @@ -83,7 +83,9 @@ class StepFlowForm extends LitElement { @click=${this._submitStep} .disabled=${!allRequiredInfoFilledIn} >${this.hass.localize( - "ui.panel.config.integrations.config_flow.submit" + `ui.panel.config.integrations.config_flow.${ + this.step.last_step === false ? "next" : "submit" + }` )} diff --git a/src/translations/en.json b/src/translations/en.json index 108f4cf94f..ff075ced07 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2191,6 +2191,7 @@ "dismiss": "Dismiss dialog", "finish": "Finish", "submit": "Submit", + "next": "Next", "not_all_required_fields": "Not all required fields are filled in.", "error_saving_area": "Error saving area: {error}", "created_config": "Created configuration for {name}.",