diff --git a/src/components/dialogs/hacs-custom-repositories-dialog.ts b/src/components/dialogs/hacs-custom-repositories-dialog.ts index 8ba490053..a3386022c 100644 --- a/src/components/dialogs/hacs-custom-repositories-dialog.ts +++ b/src/components/dialogs/hacs-custom-repositories-dialog.ts @@ -29,8 +29,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { changedProperties.has("active") || changedProperties.has("_error") || changedProperties.has("_addRepositoryData") || - changedProperties.has("_progress") || - changedProperties.has("repositories") + changedProperties.has("_progress") ); } @@ -155,6 +154,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { } private async _removeRepository(repository: string) { + this._progress = true; this._error = undefined; await repositoryDelete(this.hass, repository); const repositories = await getRepositories(this.hass); @@ -165,6 +165,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { composed: true, }) ); + this._progress = false; } private async _showReopsitoryInfo(repository: string) { diff --git a/src/components/dialogs/hacs-install-dialog.ts b/src/components/dialogs/hacs-install-dialog.ts index ee36ac2a2..4aa473200 100644 --- a/src/components/dialogs/hacs-install-dialog.ts +++ b/src/components/dialogs/hacs-install-dialog.ts @@ -82,6 +82,7 @@ export class HacsInstallDialog extends HacsDialogBase { composed: true, }) ); + this._repository = this._getRepository(repositories, this.repository!); } this._toggle = false; this.hass.connection.subscribeEvents((msg) => (this._error = (msg as any).data), "hacs/error"); @@ -206,6 +207,7 @@ export class HacsInstallDialog extends HacsDialogBase { composed: true, }) ); + this._repository = this._getRepository(repositories, this.repository!); this._toggle = false; } this._downloadRepositoryData = ev.detail.value; diff --git a/src/components/dialogs/hacs-repository-info-dialog.ts b/src/components/dialogs/hacs-repository-info-dialog.ts index c37fa79f9..46a183c17 100644 --- a/src/components/dialogs/hacs-repository-info-dialog.ts +++ b/src/components/dialogs/hacs-repository-info-dialog.ts @@ -44,10 +44,11 @@ export class HacsRepositoryDialog extends HacsDialogBase { if (propName === "hass") { this.sidebarDocked = window.localStorage.getItem("dockedSidebar") === '"docked"'; } - if (propName === "repositories") { + if (propName === "hacs") { this._repository = this._getRepository(this.hacs.repositories, this.repository!); } }); + console.log(changedProperties); return ( changedProperties.has("sidebarDocked") || changedProperties.has("narrow") || @@ -68,6 +69,7 @@ export class HacsRepositoryDialog extends HacsDialogBase { composed: true, }) ); + this._repository = this._getRepository(repositories, this.repository!); } }