Skip to content

Commit

Permalink
Only use icon for integration category in dialogs (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Nov 13, 2021
1 parent fb8daf7 commit 43e13c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/dialogs/hacs-add-repository-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class HacsAddRepositoryDialog extends HacsDialogBase {
@load=${this._onImageLoad}
/>
`
: html`<ha-svg-icon .path=${mdiGithub} slot="prefix"></ha-svg-icon>`
: ""
: ""}
<span slot="heading"> ${repo.name} </span>
<span slot="description">${repo.description}</span>
Expand Down
5 changes: 1 addition & 4 deletions src/components/dialogs/hacs-custom-repositories-dialog.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "@material/mwc-button/mwc-button";
import { mdiDelete, mdiGithub } from "@mdi/js";
import { mdiDelete } from "@mdi/js";
import { css, html, PropertyValues, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import { computeRTL } from "../../../homeassistant-frontend/src/common/util/compute_rtl";
Expand Down Expand Up @@ -74,9 +74,6 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase {
(repo) => html`<ha-settings-row
@click=${() => this._showReopsitoryInfo(String(repo.id))}
>
${!this.narrow
? html`<ha-svg-icon slot="prefix" .path=${mdiGithub}></ha-svg-icon>`
: ""}
<span slot="heading">${repo.name}</span>
<span slot="description">${repo.full_name} (${repo.category})</span>
Expand Down

0 comments on commit 43e13c9

Please sign in to comment.