Skip to content
Merged
Changes from 2 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
73 changes: 36 additions & 37 deletions hassio/src/dialogs/snapshot/dialog-hassio-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ class HassioSnapshotDialog extends LitElement {
return html``;
}
return html`
<ha-dialog open stacked @closing=${this._closeDialog} .heading=${true}>
<ha-dialog
open
stacked
@closing=${this._closeDialog}
.heading=${true}
hideactions
Comment thread
ludeeus marked this conversation as resolved.
Outdated
>
<div slot="heading">
<ha-header-bar>
<span slot="title">
Expand Down Expand Up @@ -192,46 +198,36 @@ class HassioSnapshotDialog extends LitElement {
${this._error ? html` <p class="error">Error: ${this._error}</p> ` : ""}

<div>Actions:</div>
<div class="button-row">
Comment thread
ludeeus marked this conversation as resolved.
Outdated
${this._snapshot.type === "full"
? html`
<mwc-button @click=${this._fullRestoreClicked}>
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
Restore Everything
</mwc-button>
`
: ""}
<mwc-button @click=${this._partialRestoreClicked}>
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
Restore Selected
</mwc-button>
</div>
${!this._onboarding
? html`<mwc-button
@click=${this._downloadClicked}
slot="primaryAction"
>
<ha-svg-icon .path=${mdiDownload} class="icon"></ha-svg-icon>
Download Snapshot
</mwc-button>`
: ""}

<mwc-button
@click=${this._partialRestoreClicked}
slot="secondaryAction"
>
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
Restore Selected
</mwc-button>
${this._snapshot.type === "full"
? html`
<mwc-button
@click=${this._fullRestoreClicked}
slot="secondaryAction"
>
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
Wipe &amp; restore
</mwc-button>
<div class="button-row">
Comment thread
ludeeus marked this conversation as resolved.
Outdated
<mwc-button @click=${this._downloadClicked}>
<ha-svg-icon .path=${mdiDownload} class="icon"></ha-svg-icon>
Download Snapshot
</mwc-button>

<mwc-button @click=${this._deleteClicked}>
<ha-svg-icon .path=${mdiDelete} class="icon warning">
</ha-svg-icon>
<span class="warning">Delete Snapshot</span>
</mwc-button>
</div>
`
: ""}
${!this._onboarding
? html`<mwc-button
@click=${this._deleteClicked}
slot="secondaryAction"
>
<ha-svg-icon
.path=${mdiDelete}
class="icon warning"
></ha-svg-icon>
<span class="warning">Delete Snapshot</span>
</mwc-button>`
: ""}
</ha-dialog>
`;
}
Expand All @@ -245,6 +241,9 @@ class HassioSnapshotDialog extends LitElement {
display: block;
margin: 4px;
}
.button-row mwc-button {
padding: 8px;
}
Comment thread
ludeeus marked this conversation as resolved.
Outdated
.details {
color: var(--secondary-text-color);
}
Expand Down