@@ -1,5 +1,4 @@
|
|||||||
<app-update-available
|
<app-update-available *ngIf="showUpdateAvailable$ | async"
|
||||||
[showUpdateAvailable]="showUpdateAvailable$ | async"
|
|
||||||
(updateApp)="updateApp()"
|
(updateApp)="updateApp()"
|
||||||
(doNotUpdateApp)="doNotUpdateApp()">
|
(doNotUpdateApp)="doNotUpdateApp()">
|
||||||
</app-update-available>
|
</app-update-available>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div *ngIf="showUpdateAvailable">
|
<div class="app-update-available-wrapper">
|
||||||
New version available.
|
New version available.
|
||||||
<button type="button" (click)="updateApp.emit()" class="btn btn-primary">Update</button>
|
<button type="button" (click)="updateApp.emit()" class="btn btn-primary">Update</button>
|
||||||
<button type="button" (click)="doNotUpdateApp.emit()" class="btn btn-default">Close</button>
|
<button type="button" (click)="doNotUpdateApp.emit()" class="btn btn-default">Close</button>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
:host {
|
.app-update-available-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0.5rem;
|
margin: 0.5rem;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-update-available',
|
selector: 'app-update-available',
|
||||||
@@ -7,7 +7,6 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from
|
|||||||
changeDetection: ChangeDetectionStrategy.OnPush
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
})
|
})
|
||||||
export class UpdateAvailableComponent {
|
export class UpdateAvailableComponent {
|
||||||
@Input() showUpdateAvailable: boolean = false;
|
|
||||||
@Output() updateApp = new EventEmitter<null>();
|
@Output() updateApp = new EventEmitter<null>();
|
||||||
@Output() doNotUpdateApp = new EventEmitter<null>();
|
@Output() doNotUpdateApp = new EventEmitter<null>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user