Update icons for backups (#23351)

This commit is contained in:
Paul Bottein 2024-12-20 11:27:49 +01:00 committed by GitHub
parent 65860a3142
commit 49d9c7f392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
import { mdiDatabase } from "@mdi/js"; import { mdiHarddisk } from "@mdi/js";
import type { PropertyValues } from "lit"; import type { PropertyValues } from "lit";
import { css, html, LitElement, nothing } from "lit"; import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators"; import { customElement, property, state } from "lit/decorators";
@ -64,7 +64,7 @@ class HaBackupConfigAgents extends LitElement {
<ha-md-list-item> <ha-md-list-item>
${isLocalAgent(agentId) ${isLocalAgent(agentId)
? html` ? html`
<ha-svg-icon .path=${mdiDatabase} slot="start"> <ha-svg-icon .path=${mdiHarddisk} slot="start">
</ha-svg-icon> </ha-svg-icon>
` `
: html` : html`

View File

@ -1,4 +1,4 @@
import { mdiDatabase } from "@mdi/js"; import { mdiHarddisk } from "@mdi/js";
import { css, html, LitElement } from "lit"; import { css, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators"; import { customElement, property } from "lit/decorators";
import memoizeOne from "memoize-one"; import memoizeOne from "memoize-one";
@ -61,7 +61,7 @@ class HaBackupAgentsPicker extends LitElement {
<span class="label" slot="label"> <span class="label" slot="label">
${isLocalAgent(agentId) ${isLocalAgent(agentId)
? html` ? html`
<ha-svg-icon .path=${mdiDatabase} slot="start"> </ha-svg-icon> <ha-svg-icon .path=${mdiHarddisk} slot="start"> </ha-svg-icon>
` `
: html` : html`
<img <img

View File

@ -1,4 +1,4 @@
import { mdiCalendar, mdiCog, mdiPuzzle, mdiUpload } from "@mdi/js"; import { mdiCalendar, mdiDatabase, mdiPuzzle, mdiUpload } from "@mdi/js";
import type { CSSResultGroup } from "lit"; import type { CSSResultGroup } from "lit";
import { css, html, LitElement, nothing } from "lit"; import { css, html, LitElement, nothing } from "lit";
import { customElement, property } from "lit/decorators"; import { customElement, property } from "lit/decorators";
@ -113,7 +113,7 @@ class HaBackupBackupsSummary extends LitElement {
</div> </div>
</ha-md-list-item> </ha-md-list-item>
<ha-md-list-item> <ha-md-list-item>
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon> <ha-svg-icon slot="start" .path=${mdiDatabase}></ha-svg-icon>
<div slot="headline"> <div slot="headline">
${this.config.create_backup.include_database ${this.config.create_backup.include_database
? "Settings and history" ? "Settings and history"

View File

@ -1,8 +1,8 @@
import { import {
mdiDatabase,
mdiDelete, mdiDelete,
mdiDotsVertical, mdiDotsVertical,
mdiDownload, mdiDownload,
mdiHarddisk,
mdiPlus, mdiPlus,
mdiUpload, mdiUpload,
} from "@mdi/js"; } from "@mdi/js";
@ -147,7 +147,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
if (isLocalAgent(agentId)) { if (isLocalAgent(agentId)) {
return html` return html`
<ha-svg-icon <ha-svg-icon
.path=${mdiDatabase} .path=${mdiHarddisk}
title=${name} title=${name}
slot="graphic" slot="graphic"
></ha-svg-icon> ></ha-svg-icon>

View File

@ -1,5 +1,5 @@
import type { ActionDetail } from "@material/mwc-list"; import type { ActionDetail } from "@material/mwc-list";
import { mdiDatabase, mdiDelete, mdiDotsVertical, mdiDownload } from "@mdi/js"; import { mdiDelete, mdiDotsVertical, mdiDownload, mdiHarddisk } from "@mdi/js";
import { css, html, LitElement, nothing } from "lit"; import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators"; import { customElement, property, state } from "lit/decorators";
import { formatDateTime } from "../../../common/datetime/format_date_time"; import { formatDateTime } from "../../../common/datetime/format_date_time";
@ -177,7 +177,7 @@ class HaConfigBackupDetails extends LitElement {
${isLocalAgent(agentId) ${isLocalAgent(agentId)
? html` ? html`
<ha-svg-icon <ha-svg-icon
.path=${mdiDatabase} .path=${mdiHarddisk}
slot="start" slot="start"
> >
</ha-svg-icon> </ha-svg-icon>

View File

@ -89,7 +89,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
notifyOnError = true, notifyOnError = true,
returnResponse = false returnResponse = false
) => { ) => {
if (__DEV__ || this.hass?.debugConnection) { if (this.hass?.debugConnection) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log( console.log(
"Calling service", "Calling service",
@ -115,7 +115,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
) { ) {
return { context: { id: "" } }; return { context: { id: "" } };
} }
if (__DEV__ || this.hass?.debugConnection) { if (this.hass?.debugConnection) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error( console.error(
"Error calling service", "Error calling service",
@ -167,7 +167,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
) => fetchWithAuth(auth, `${auth.data.hassUrl}${path}`, init), ) => fetchWithAuth(auth, `${auth.data.hassUrl}${path}`, init),
// For messages that do not get a response // For messages that do not get a response
sendWS: (msg) => { sendWS: (msg) => {
if (__DEV__ || this.hass?.debugConnection) { if (this.hass?.debugConnection) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log("Sending", msg); console.log("Sending", msg);
} }
@ -175,14 +175,14 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
}, },
// For messages that expect a response // For messages that expect a response
callWS: <R>(msg) => { callWS: <R>(msg) => {
if (__DEV__ || this.hass?.debugConnection) { if (this.hass?.debugConnection) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log("Sending", msg); console.log("Sending", msg);
} }
const resp = conn.sendMessagePromise<R>(msg); const resp = conn.sendMessagePromise<R>(msg);
if (__DEV__ || this.hass?.debugConnection) { if (this.hass?.debugConnection) {
resp.then( resp.then(
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
(result) => console.log("Received", result), (result) => console.log("Received", result),