|
@ -200,6 +200,16 @@ export class AssetProfileDialog implements OnDestroy, OnInit { |
|
|
public initialize() { |
|
|
public initialize() { |
|
|
this.historicalDataItems = undefined; |
|
|
this.historicalDataItems = undefined; |
|
|
|
|
|
|
|
|
|
|
|
this.adminService |
|
|
|
|
|
.fetchAdminData() |
|
|
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
|
|
.subscribe(({ settings }) => { |
|
|
|
|
|
this.isDataGatheringEnabled = |
|
|
|
|
|
settings[PROPERTY_IS_DATA_GATHERING_ENABLED] === false ? false : true; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
this.userService.stateChanged |
|
|
this.userService.stateChanged |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe((state) => { |
|
|
.subscribe((state) => { |
|
@ -289,16 +299,6 @@ export class AssetProfileDialog implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.adminService |
|
|
|
|
|
.fetchAdminData() |
|
|
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
|
|
.subscribe(({ settings }) => { |
|
|
|
|
|
this.isDataGatheringEnabled = |
|
|
|
|
|
settings[PROPERTY_IS_DATA_GATHERING_ENABLED] === false ? false : true; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public onCancelEditAssetProfileIdentifierMode() { |
|
|
public onCancelEditAssetProfileIdentifierMode() { |
|
|