From fc483fca21fc77ea7637a95f7bbffc205a959932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 27 Apr 2023 14:18:26 +0200 Subject: [PATCH] private --- .../installed-packages-section-view-item.element.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/packages/package-section/views/installed/installed-packages-section-view-item.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/packages/package-section/views/installed/installed-packages-section-view-item.element.ts index fec68b2c0c..8a093fa5ef 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/packages/package-section/views/installed/installed-packages-section-view-item.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/packages/package-section/views/installed/installed-packages-section-view-item.element.ts @@ -42,17 +42,17 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { @state() private _packageView?: ManifestPackageView; - private _notificationContext?: UmbNotificationContext; - private _modalContext?: UmbModalContext; + #notificationContext?: UmbNotificationContext; + #modalContext?: UmbModalContext; constructor() { super(); this.consumeContext(UMB_NOTIFICATION_CONTEXT_TOKEN, (instance) => { - this._notificationContext = instance; + this.#notificationContext = instance; }); this.consumeContext(UMB_MODAL_CONTEXT_TOKEN, (instance) => { - this._modalContext = instance; + this.#modalContext = instance; }); } @@ -76,7 +76,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { async _onMigration() { if (!this.name) return; - const modalHandler = this._modalContext?.open(UMB_CONFIRM_MODAL, { + const modalHandler = this.#modalContext?.open(UMB_CONFIRM_MODAL, { color: 'positive', headline: `Run migrations for ${this.name}?`, content: `Do you want to start run migrations for ${this.name}`, @@ -91,7 +91,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { PackageResource.postPackageByNameRunMigration({ name: this.name }) ); if (error) return; - this._notificationContext?.peek('positive', { data: { message: 'Migrations completed' } }); + this.#notificationContext?.peek('positive', { data: { message: 'Migrations completed' } }); this._migrationButtonState = 'success'; this.hasPendingMigrations = false; }