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 })
|
@property({ type: Boolean, attribute: false })
|
||||||
hasPendingMigrations = false;
|
hasPendingMigrations = false;
|
||||||
|
|
||||||
@property({ attribute: 'custom-icon' })
|
|
||||||
customIcon?: string;
|
|
||||||
|
|
||||||
@state()
|
@state()
|
||||||
private _migrationButtonState?: UUIButtonState;
|
private _migrationButtonState?: UUIButtonState;
|
||||||
|
|
||||||
@@ -123,7 +120,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement {
|
|||||||
version="${ifDefined(this.version ?? undefined)}"
|
version="${ifDefined(this.version ?? undefined)}"
|
||||||
@open=${this.#onConfigure}
|
@open=${this.#onConfigure}
|
||||||
?readonly="${!this._packageView}">
|
?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">
|
<div slot="tag">
|
||||||
${this.hasPendingMigrations
|
${this.hasPendingMigrations
|
||||||
? html`<uui-button
|
? html`<uui-button
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ export class UmbInstalledPackagesSectionViewElement extends UmbLitElement implem
|
|||||||
(item) => item.name,
|
(item) => item.name,
|
||||||
(item) => html`
|
(item) => html`
|
||||||
<umb-installed-packages-section-view-item
|
<umb-installed-packages-section-view-item
|
||||||
custom-icon="icon-sync"
|
|
||||||
.name=${item.name}
|
.name=${item.name}
|
||||||
.version=${item.version}
|
.version=${item.version}
|
||||||
.hasPendingMigrations=${item.hasPendingMigrations}>
|
.hasPendingMigrations=${item.hasPendingMigrations}>
|
||||||
|
|||||||
Reference in New Issue
Block a user