Skip to content

Commit

Permalink
[#noissue] Cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
binDongKim committed Feb 9, 2023
1 parent d39aafc commit d19d665
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section>
<div class="l-main-contents-top font-opensans" [class.sideNavigationUI]="sideNavigationUI">
<div class="l-main-contents-top font-opensans">
<ng-container *ngIf="showElements$ | async">
<div class="l-fixed-period-mover-wrapper">
<pp-fixed-period-mover-container></pp-fixed-period-mover-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { UrlPathId } from 'app/shared/models';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class MainContentsContainerComponent implements OnInit {
sideNavigationUI: boolean;

showElements$: Observable<boolean>;
enableRealTime$: Observable<boolean>;

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

ngOnInit() {
this.sideNavigationUI = this.webAppSettingDataService.getExperimentalOption('sideNavigationUI');

this.showElements$ = this.newUrlStateNotificationService.onUrlStateChange$.pipe(
map((urlService: NewUrlStateNotificationService) => urlService.hasValue(UrlPathId.PERIOD, UrlPathId.END_TIME))
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<div class="l-status" *ngIf="hasServerList">
<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>
<button class="pinpoint-btn" (click)="onClickOpenInspector()" *ngIf="isWAS && !sideNavigationUI"><span><i class="fas fa-chart-line"></i><span>Inspector</span></span></button>
<ul class="l-status-count">
<li>Total <span class="l-total">{{node.instanceCount}}</span></li>
<li>Error <span class="l-error">{{node.instanceErrorCount || 0}}</span></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export class ServerStatusContainerComponent implements OnInit, OnDestroy {
private _isInfoPerServerShow: boolean;
private selectedAgent = '';

sideNavigationUI: boolean;

enableRealTime: boolean;
node: INodeInfo;
isLoading = false;
Expand All @@ -35,12 +33,9 @@ export class ServerStatusContainerComponent implements OnInit, OnDestroy {
private analyticsService: AnalyticsService,
private cd: ChangeDetectorRef,
private messageQueueService: MessageQueueService,
private webAppSettingDataService: WebAppSettingDataService,
) {}

ngOnInit() {
this.sideNavigationUI = this.webAppSettingDataService.getExperimentalOption('sideNavigationUI');

this.newUrlStateNotificationService.onUrlStateChange$.pipe(
takeUntil(this.unsubscribe)
).subscribe((urlService: NewUrlStateNotificationService) => {
Expand Down

0 comments on commit d19d665

Please sign in to comment.