Skip to content

Commit d19d665

Browse files
committed
[#noissue] Cleanup unused code
1 parent d39aafc commit d19d665

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

web/src/main/angular/src/app/core/components/main-contents/main-contents-container.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<section>
2-
<div class="l-main-contents-top font-opensans" [class.sideNavigationUI]="sideNavigationUI">
2+
<div class="l-main-contents-top font-opensans">
33
<ng-container *ngIf="showElements$ | async">
44
<div class="l-fixed-period-mover-wrapper">
55
<pp-fixed-period-mover-container></pp-fixed-period-mover-container>

web/src/main/angular/src/app/core/components/main-contents/main-contents-container.component.ts

-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import { UrlPathId } from 'app/shared/models';
1313
changeDetection: ChangeDetectionStrategy.OnPush
1414
})
1515
export class MainContentsContainerComponent implements OnInit {
16-
sideNavigationUI: boolean;
17-
1816
showElements$: Observable<boolean>;
1917
enableRealTime$: Observable<boolean>;
2018

@@ -29,8 +27,6 @@ export class MainContentsContainerComponent implements OnInit {
2927
) {}
3028

3129
ngOnInit() {
32-
this.sideNavigationUI = this.webAppSettingDataService.getExperimentalOption('sideNavigationUI');
33-
3430
this.showElements$ = this.newUrlStateNotificationService.onUrlStateChange$.pipe(
3531
map((urlService: NewUrlStateNotificationService) => urlService.hasValue(UrlPathId.PERIOD, UrlPathId.END_TIME))
3632
);

web/src/main/angular/src/app/core/components/server-status/server-status-container.component.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<div class="l-status" *ngIf="hasServerList">
22
<button class="pinpoint-btn" [disabled]="enableRealTime" (click)="onClickViewServer()"><span><i class="fas fa-angle-{{spreadAngleIndicator}}" [hidden]="isLoading"></i><i class="fas fa-spinner fa-spin fa-fw" style="top:0px;left:-10px;" [hidden]="!isLoading"></i>VIEW SERVERS</span></button>
3-
<button class="pinpoint-btn" (click)="onClickOpenInspector()" *ngIf="isWAS && !sideNavigationUI"><span><i class="fas fa-chart-line"></i><span>Inspector</span></span></button>
43
<ul class="l-status-count">
54
<li>Total <span class="l-total">{{node.instanceCount}}</span></li>
65
<li>Error <span class="l-error">{{node.instanceErrorCount || 0}}</span></li>

web/src/main/angular/src/app/core/components/server-status/server-status-container.component.ts

-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export class ServerStatusContainerComponent implements OnInit, OnDestroy {
1717
private _isInfoPerServerShow: boolean;
1818
private selectedAgent = '';
1919

20-
sideNavigationUI: boolean;
21-
2220
enableRealTime: boolean;
2321
node: INodeInfo;
2422
isLoading = false;
@@ -35,12 +33,9 @@ export class ServerStatusContainerComponent implements OnInit, OnDestroy {
3533
private analyticsService: AnalyticsService,
3634
private cd: ChangeDetectorRef,
3735
private messageQueueService: MessageQueueService,
38-
private webAppSettingDataService: WebAppSettingDataService,
3936
) {}
4037

4138
ngOnInit() {
42-
this.sideNavigationUI = this.webAppSettingDataService.getExperimentalOption('sideNavigationUI');
43-
4439
this.newUrlStateNotificationService.onUrlStateChange$.pipe(
4540
takeUntil(this.unsubscribe)
4641
).subscribe((urlService: NewUrlStateNotificationService) => {

0 commit comments

Comments
 (0)