bug fixed
This commit is contained in:
parent
00dc2d511b
commit
41fb1b14a0
|
@ -256,6 +256,7 @@
|
|||
class="myset"
|
||||
xPosition="after"
|
||||
yPosition="below"
|
||||
(closed)="onClosedProfileMenu($event)"
|
||||
>
|
||||
<div class="setting">
|
||||
<button mat-menu-item [matMenuTriggerFor]="presenseMenu">
|
||||
|
@ -309,12 +310,14 @@
|
|||
</button>
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
<div
|
||||
class="setting menu-item"
|
||||
<div class="setting">
|
||||
<button
|
||||
mat-menu-item
|
||||
[matMenuTriggerFor]="informationMenu"
|
||||
(click)="onClickCheckForUpdates($event)"
|
||||
(menuOpened)="onMenuOpenedinformationMenu()"
|
||||
>
|
||||
{{ 'information.checkForUpdates' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
<div class="setting">
|
||||
|
@ -432,7 +435,7 @@
|
|||
</mat-radio-group>
|
||||
</mat-menu>
|
||||
|
||||
<mat-menu #informationMenu="matMenu" (closed)="onClosedInformationMenu($event)">
|
||||
<mat-menu #informationMenu="matMenu">
|
||||
<div
|
||||
class="version-info-container menu-item"
|
||||
(click)="$event.stopPropagation()"
|
||||
|
|
|
@ -400,6 +400,13 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||
this.nativeService.openDefaultBrowser(url);
|
||||
}
|
||||
|
||||
onClosedProfileMenu() {
|
||||
this.checkingUpdate = false;
|
||||
this.checkingUpdateIsProcessing = false;
|
||||
this.checkingUpdateAppVersion = undefined;
|
||||
this.checkingUpdateIsExist = false;
|
||||
}
|
||||
|
||||
onClickUpdate() {
|
||||
this.store.dispatch(UpdateStore.applyInstantUpdate());
|
||||
}
|
||||
|
@ -500,17 +507,12 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||
);
|
||||
}
|
||||
|
||||
onClickCheckForUpdates(event: Event) {
|
||||
event.stopPropagation();
|
||||
|
||||
this.checkForUpdates();
|
||||
onMenuOpenedinformationMenu() {
|
||||
if (this.checkingUpdate) {
|
||||
return;
|
||||
}
|
||||
|
||||
onClosedInformationMenu() {
|
||||
this.checkingUpdate = false;
|
||||
this.checkingUpdateIsProcessing = false;
|
||||
this.checkingUpdateAppVersion = undefined;
|
||||
this.checkingUpdateIsExist = false;
|
||||
this.checkForUpdates();
|
||||
}
|
||||
|
||||
checkForUpdates() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user