mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Make the "Aborted: Reauthentication successful" more user friendly (#12530)
Replace the "Aborted" in the title with the integration name to make the user error messages more user friendly. The message itself ("Reauthentication successful" or "Missing configuraiton, etc) error message is descriptive enought that we can replace the title with the integration name and still preserve the meeting. The advance is that this doesn't confuse users who are surprised by it saying "Aborted" when things were successful https://github.com/home-assistant/core/issues/47135
This commit is contained in:
parent
a571fb5528
commit
dd49fd2788
@ -312,6 +312,7 @@ class DataEntryFlowDialog extends LitElement {
|
||||
.flowConfig=${this._params.flowConfig}
|
||||
.step=${this._step}
|
||||
.hass=${this.hass}
|
||||
.domain=${this._step.handler}
|
||||
></step-flow-abort>
|
||||
`
|
||||
: this._step.type === "progress"
|
||||
|
@ -15,13 +15,11 @@ class StepFlowAbort extends LitElement {
|
||||
|
||||
@property({ attribute: false }) public step!: DataEntryFlowStepAbort;
|
||||
|
||||
@property({ attribute: false }) public domain!: string;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<h2>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_flow.aborted"
|
||||
)}
|
||||
</h2>
|
||||
<h2>${this.hass.localize(`component.${this.domain}.title`)}</h2>
|
||||
<div class="content">
|
||||
${this.flowConfig.renderAbortDescription(this.hass, this.step)}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user