diff --git a/client/src/app/core/ui-services/update.service.ts b/client/src/app/core/ui-services/update.service.ts index 9a8aebd03..4c418ed60 100644 --- a/client/src/app/core/ui-services/update.service.ts +++ b/client/src/app/core/ui-services/update.service.ts @@ -3,8 +3,6 @@ import { SwUpdate, UpdateAvailableEvent } from '@angular/service-worker'; import { Observable } from 'rxjs'; -import { NotifyService } from '../core-services/notify.service'; - /** * Handle Service Worker updates using the SwUpdate service form angular. */ @@ -12,8 +10,6 @@ import { NotifyService } from '../core-services/notify.service'; providedIn: 'root' }) export class UpdateService { - private static NOTIFY_NAME = 'swCheckForUpdate'; - /** * @returns the updateSubscription */ @@ -28,12 +24,7 @@ export class UpdateService { * @param swUpdate Service Worker update service * @param matSnackBar Currently to show that an update is available */ - public constructor(private swUpdate: SwUpdate, private notify: NotifyService) { - // Listen on requests from other users to check for updates. - this.notify.getMessageObservable(UpdateService.NOTIFY_NAME).subscribe(() => { - this.checkForUpdate(); - }); - } + public constructor(private swUpdate: SwUpdate) {} /** * Manually applies the update if one was found @@ -52,13 +43,4 @@ export class UpdateService { this.swUpdate.checkForUpdate(); } } - - /** - * Emits a message to all clients initiating to check for updates. This method - * can only be called by users with 'users.can_manage'. This will be checked by - * the server. - */ - public initiateUpdateCheckForAllClients(): void { - this.notify.sendToAllUsers(UpdateService.NOTIFY_NAME, {}); - } } diff --git a/client/src/app/site/common/components/legal-notice/legal-notice.component.html b/client/src/app/site/common/components/legal-notice/legal-notice.component.html index d8e76e3e0..ab9d28baf 100644 --- a/client/src/app/site/common/components/legal-notice/legal-notice.component.html +++ b/client/src/app/site/common/components/legal-notice/legal-notice.component.html @@ -32,18 +32,6 @@ Check for updates - -