Skip to content

Commit

Permalink
renamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
joannkazmierczak committed Jan 26, 2024
1 parent 5d90c63 commit 02e13ef
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
public isUpdateFormValid = false;
public appConfiguration: AppConfiguration;

public intervalCheckerSubscription;
public intervalCheckerSubscriptionHistory;
public intervalCheckerState;
public intervalCheckerStateHistory;

public wasUpdated = false;
public refreshForm: EventEmitter<any>;
Expand Down Expand Up @@ -186,7 +186,7 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
});

this.updateAppInstanceState();
this.intervalCheckerSubscription = interval(5000).subscribe(() => this.updateAppInstanceState());
this.intervalCheckerState = interval(5000).subscribe(() => this.updateAppInstanceState());
});
}

Expand Down Expand Up @@ -273,11 +273,11 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
}
showHistory() {
this.updateAppInstanceHistory()
this.intervalCheckerSubscriptionHistory = interval(5000).subscribe(() => {
this.intervalCheckerStateHistory = interval(5000).subscribe(() => {
if (this.showAppInstanceHistory) {
this.updateAppInstanceHistory()
} else {
this.intervalCheckerSubscriptionHistory.unsubscribe();
this.intervalCheckerStateHistory.unsubscribe();
}
});
}
Expand Down Expand Up @@ -349,8 +349,8 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
}

ngOnDestroy() {
if (this.intervalCheckerSubscription) {
this.intervalCheckerSubscription.unsubscribe();
if (this.intervalCheckerState) {
this.intervalCheckerState.unsubscribe();
}
}

Expand Down

0 comments on commit 02e13ef

Please sign in to comment.