mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix some hassio things (#9059)
This commit is contained in:
parent
a8d49c27c8
commit
13cc016b36
@ -261,13 +261,9 @@ class HassioAddonInfo extends LitElement {
|
|||||||
${this.supervisor.localize(
|
${this.supervisor.localize(
|
||||||
"addon.dashboard.visit_addon_page",
|
"addon.dashboard.visit_addon_page",
|
||||||
"name",
|
"name",
|
||||||
html`<a
|
html`<a href="${this.addon.url!}" target="_blank" rel="noreferrer"
|
||||||
href="${this.addon.url!}"
|
>${this.addon.name}</a
|
||||||
target="_blank"
|
>`
|
||||||
rel="noreferrer"
|
|
||||||
>
|
|
||||||
${this.addon.name}
|
|
||||||
</a>`
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div class="addon-container">
|
<div class="addon-container">
|
||||||
|
@ -43,7 +43,7 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
|
|
||||||
@internalProperty() private _opened = false;
|
@internalProperty() private _opened = false;
|
||||||
|
|
||||||
@internalProperty() private _prosessing = false;
|
@internalProperty() private _processing = false;
|
||||||
|
|
||||||
@internalProperty() private _error?: string;
|
@internalProperty() private _error?: string;
|
||||||
|
|
||||||
@ -119,8 +119,11 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
@keydown=${this._handleKeyAdd}
|
@keydown=${this._handleKeyAdd}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<mwc-button @click=${this._addRepository}>
|
<mwc-button @click=${this._addRepository}>
|
||||||
${this._prosessing
|
${this._processing
|
||||||
? html`<ha-circular-progress active></ha-circular-progress>`
|
? html`<ha-circular-progress
|
||||||
|
active
|
||||||
|
size="small"
|
||||||
|
></ha-circular-progress>`
|
||||||
: this._dialogParams!.supervisor.localize(
|
: this._dialogParams!.supervisor.localize(
|
||||||
"dialog.repositories.add"
|
"dialog.repositories.add"
|
||||||
)}
|
)}
|
||||||
@ -201,7 +204,7 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
if (!input || !input.value) {
|
if (!input || !input.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._prosessing = true;
|
this._processing = true;
|
||||||
const repositories = this._filteredRepositories(this._repositories!);
|
const repositories = this._filteredRepositories(this._repositories!);
|
||||||
const newRepositories = repositories.map((repo) => repo.source);
|
const newRepositories = repositories.map((repo) => repo.source);
|
||||||
newRepositories.push(input.value);
|
newRepositories.push(input.value);
|
||||||
@ -216,7 +219,7 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._error = extractApiErrorMessage(err);
|
this._error = extractApiErrorMessage(err);
|
||||||
}
|
}
|
||||||
this._prosessing = false;
|
this._processing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _removeRepository(ev: Event) {
|
private async _removeRepository(ev: Event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user