Package section: use command icon for migrations, remove prop (#20775)

change icon and remove ability to customize
This commit is contained in:
Niels Lyngsø
2025-11-10 10:38:53 +01:00
committed by GitHub
parent fcfaff9daa
commit bce85e1e88
2 changed files with 1 additions and 5 deletions

View File

@@ -31,9 +31,6 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement {
@property({ type: Boolean, attribute: false })
hasPendingMigrations = false;
@property({ attribute: 'custom-icon' })
customIcon?: string;
@state()
private _migrationButtonState?: UUIButtonState;
@@ -123,7 +120,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement {
version="${ifDefined(this.version ?? undefined)}"
@open=${this.#onConfigure}
?readonly="${!this._packageView}">
${this.customIcon ? html`<umb-icon slot="icon" name=${this.customIcon}></umb-icon>` : nothing}
<umb-icon slot="icon" name="icon-command"></umb-icon>
<div slot="tag">
${this.hasPendingMigrations
? html`<uui-button

View File

@@ -98,7 +98,6 @@ export class UmbInstalledPackagesSectionViewElement extends UmbLitElement implem
(item) => item.name,
(item) => html`
<umb-installed-packages-section-view-item
custom-icon="icon-sync"
.name=${item.name}
.version=${item.version}
.hasPendingMigrations=${item.hasPendingMigrations}>