mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user