Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions hassio/src/dialogs/addon/dialog-supervisor-addon-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,25 @@ class DialogSupervisorAddonUpdate extends LitElement {

protected render(): TemplateResult {
return html`
<ha-dialog
.heading="Update ${this.addon.name}"
.open=${this._opened}
scrimClickAction
escapeKeyAction
>
<ha-dialog .open=${this._opened} scrimClickAction escapeKeyAction>
${this._action === null
? html`<div>
Are you sure you want to update this add-on to version
${this.addon.version_latest}?
? html`<slot name="heading">
<h2 id="title" class="header_title">
Update ${this.addon.name}
</h2>
</slot>
<div>
Are you sure you want to update the ${this.addon.name} add-on to
version ${this.addon.version_latest}?
</div>

<ha-settings-row>
<span slot="heading">
Snapshot
</span>
<span slot="description">
Create a snapshot of the add-on before updating
Create a snapshot of the ${this.addon.name} add-on before
updating
</span>
<ha-switch
.checked=${this._createSnapshot}
Expand All @@ -100,8 +101,8 @@ class DialogSupervisorAddonUpdate extends LitElement {
</ha-circular-progress>
<p class="progress-text">
${this._action === "update"
? `Update to version ${this.addon.version_latest} in progress`
: "Creating snapshot in progress"}
? `Updating ${this.addon.name} to version ${this.addon.version_latest}`
: "Creating snapshot of Home Assistant Core"}
</p>`}
${this._error ? html`<p class="error">${this._error}</p>` : ""}
</ha-dialog>
Expand Down
18 changes: 9 additions & 9 deletions hassio/src/dialogs/core/dialog-supervisor-core-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ class DialogSupervisorCoreUpdate extends LitElement {

protected render(): TemplateResult {
return html`
<ha-dialog
.open=${this._opened}
heading="Update Home Assistant Core"
scrimClickAction
escapeKeyAction
>
<ha-dialog .open=${this._opened} scrimClickAction escapeKeyAction>
${this._action === null
? html`<div>
? html`<slot name="heading">
<h2 id="title" class="header_title">
Update Home Assistant Core
</h2>
</slot>
<div>
Are you sure you want to update Home Assistant Core to version
${this.core.version_latest}?
</div>
Expand Down Expand Up @@ -98,8 +98,8 @@ class DialogSupervisorCoreUpdate extends LitElement {
</ha-circular-progress>
<p class="progress-text">
${this._action === "update"
? `Update to version ${this.core.version_latest} in progress`
: "Creating snapshot in progress"}
? `Updating Home Assistant Core to version ${this.core.version_latest}`
: "Creating snapshot of Home Assistant Core"}
</p>`}
${this._error ? html`<p class="error">${this._error}</p>` : ""}
</ha-dialog>
Expand Down