* closes #1900

* fix refresh bug

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Aiden McClelland
2022-11-09 11:54:05 -07:00
parent b9e4a66fdc
commit c1ac66f6e5
3 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
<alert *ngIf="show$ | async" header="Refresh needed" (dismiss)="onDismiss()">
<alert *ngIf="show$ | async" header="Refresh Needed" (dismiss)="onDismiss()">
Your user interface is cached and out of date. Hard refresh the page to get
the latest UI.
<a alertButton class="enter-click" href=".">Refresh Page</a>
<ul>
<li><b>On Mac</b>: cmd + shift + R</li>
<li><b>On Linux/Windows</b>: ctrl + shift + R</li>
</ul>
<a alertButton class="enter-click" role="cancel">Ok</a>
</alert>

View File

@@ -6,7 +6,6 @@ import { PatchDB } from 'patch-db-client'
import { ConfigService } from '../../../services/config.service'
import { DataModel } from 'src/app/services/patch-db/data-model'
// Watch for connection status
@Injectable({ providedIn: 'root' })
export class RefreshAlertService extends Observable<boolean> {
private readonly stream$ = this.patch.watch$('server-info', 'version').pipe(