mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 02:16:35 +00:00
Use heading property for data disk dialog (#10115)
This commit is contained in:
parent
abbfe7200a
commit
7a9f17e059
@ -65,32 +65,21 @@ class HassioDatadiskDialog extends LitElement {
|
|||||||
open
|
open
|
||||||
scrimClickAction
|
scrimClickAction
|
||||||
escapeKeyAction
|
escapeKeyAction
|
||||||
|
.heading=${this.moving
|
||||||
|
? this.dialogParams.supervisor.localize("dialog.datadisk_move.moving")
|
||||||
|
: this.dialogParams.supervisor.localize("dialog.datadisk_move.title")}
|
||||||
@closed=${this.closeDialog}
|
@closed=${this.closeDialog}
|
||||||
?hideActions=${this.moving}
|
?hideActions=${this.moving}
|
||||||
>
|
>
|
||||||
${this.moving
|
${this.moving
|
||||||
? html`<slot name="heading">
|
? html` <ha-circular-progress alt="Moving" size="large" active>
|
||||||
<h2 id="title" class="header_title">
|
|
||||||
${this.dialogParams.supervisor.localize(
|
|
||||||
"dialog.datadisk_move.moving"
|
|
||||||
)}
|
|
||||||
</h2>
|
|
||||||
</slot>
|
|
||||||
<ha-circular-progress alt="Moving" size="large" active>
|
|
||||||
</ha-circular-progress>
|
</ha-circular-progress>
|
||||||
<p class="progress-text">
|
<p class="progress-text">
|
||||||
${this.dialogParams.supervisor.localize(
|
${this.dialogParams.supervisor.localize(
|
||||||
"dialog.datadisk_move.moving_desc"
|
"dialog.datadisk_move.moving_desc"
|
||||||
)}
|
)}
|
||||||
</p>`
|
</p>`
|
||||||
: html`<slot name="heading">
|
: html` ${this.devices?.length
|
||||||
<h2 id="title" class="header_title">
|
|
||||||
${this.dialogParams.supervisor.localize(
|
|
||||||
"dialog.datadisk_move.title"
|
|
||||||
)}
|
|
||||||
</h2>
|
|
||||||
</slot>
|
|
||||||
${this.devices?.length
|
|
||||||
? html`
|
? html`
|
||||||
${this.dialogParams.supervisor.localize(
|
${this.dialogParams.supervisor.localize(
|
||||||
"dialog.datadisk_move.description",
|
"dialog.datadisk_move.description",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user