Skip to content

Commit ec67a1e

Browse files
committed
chore(sonarcloud): fix issues
1 parent 5a1dac7 commit ec67a1e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/apps/backoffice/backoffice.context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export class UmbBackofficeContext extends UmbContextBase<UmbBackofficeContext> {
1717
public readonly activeSectionAlias = this.#activeSectionAlias.asObservable();
1818

1919
// TODO: We need a class array state:
20-
#allowedSections = new UmbBasicState<Array<UmbExtensionManifestInitializer<ManifestSection>>>([]);
20+
readonly #allowedSections = new UmbBasicState<Array<UmbExtensionManifestInitializer<ManifestSection>>>([]);
2121
public readonly allowedSections = this.#allowedSections.asObservable();
2222

23-
#version = new UmbStringState(undefined);
23+
readonly #version = new UmbStringState(undefined);
2424
public readonly version = this.#version.asObservable();
2525

2626
constructor(host: UmbControllerHost) {

src/apps/backoffice/components/backoffice-header-logo.element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UMB_BACKOFFICE_CONTEXT } from '../backoffice.context.js';
22
import { isCurrentUserAnAdmin } from '@umbraco-cms/backoffice/current-user';
3-
import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit';
3+
import { css, html, customElement, state, type PropertyValues } from '@umbraco-cms/backoffice/external/lit';
44
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
55
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
66
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
@@ -34,7 +34,9 @@ export class UmbBackofficeHeaderLogoElement extends UmbLitElement {
3434

3535
this.#backofficeContext = context;
3636
});
37+
}
3738

39+
protected override async firstUpdated() {
3840
this.#isAdmin();
3941
}
4042

0 commit comments

Comments
 (0)