Skip to content

Commit

Permalink
SonarCloud: mark as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
oeni2023 committed Dec 2, 2024
1 parent 316fabb commit e128b5a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/cesium-toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class CesiumToolbar extends LitElement {
super.updated(changedProperties);
}

static styles = css`
static readonly styles = css`
:host {
position: absolute;
background-color: #0000005c;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/store/draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {CesiumDraw} from '../draw/CesiumDraw';
export default class DrawStore {
private static readonly drawSubject = new BehaviorSubject<CesiumDraw | undefined>(undefined);
private static readonly drawStateSubject = new BehaviorSubject<boolean>(false);
static measureState = new BehaviorSubject<boolean>(false);
static readonly measureState = new BehaviorSubject<boolean>(false);

static setDrawState(value: boolean): void {
this.drawStateSubject.next(value);
Expand Down
4 changes: 2 additions & 2 deletions ui/src/store/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default class MainStore {
private static readonly ionTokenSubject = new BehaviorSubject<string | null>(getIonToken());
private static readonly ionAssetSubject = new Subject<IonAsset>();
private static readonly removeIonAssetsSubject = new Subject<void>();
static setUrlLayersSubject = new Subject<void>();
static syncLayerParams = new Subject<void>();
static readonly setUrlLayersSubject = new Subject<void>();
static readonly syncLayerParams = new Subject<void>();
/**
* List of uploaded KML dataSource names. Required to get list of uploaded layers and update properties in batch (e.g. exaggeration)
* @private
Expand Down
2 changes: 1 addition & 1 deletion ui/src/store/navTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class NavToolsStore {
private static readonly hideTargetPointSubject = new Subject<void>();
private static readonly navLockTypeSubject = new BehaviorSubject<LockType>('');
private static readonly targetPointPositionSubject = new BehaviorSubject<Cartesian3 | undefined>(undefined);
static exaggerationChanged = new Subject<number>();
static readonly exaggerationChanged = new Subject<number>();

static get syncTargetPoint() {
return this.syncTargetPointSubject;
Expand Down

0 comments on commit e128b5a

Please sign in to comment.