Package section: use command icon for migrations, remove prop (#20775)
change icon and remove ability to customize
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user