From bb53075428b542dbf6a6cd77897593035f316395 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Fri, 19 Oct 2018 13:41:33 +0200 Subject: [PATCH] Small text improvement. --- .../features/content/pages/content/content-page.component.ts | 2 +- src/Squidex/app/framework/services/dialog.service.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Squidex/app/features/content/pages/content/content-page.component.ts b/src/Squidex/app/features/content/pages/content/content-page.component.ts index 53b9f47b9..1b1e440df 100644 --- a/src/Squidex/app/features/content/pages/content/content-page.component.ts +++ b/src/Squidex/app/features/content/pages/content/content-page.component.ts @@ -114,7 +114,7 @@ export class ContentPageComponent implements CanComponentDeactivate, OnDestroy, if (!this.contentForm.form.dirty || !this.content) { return of(true); } else { - return this.dialogs.confirmUnsavedChanges(); + return this.dialogs.confirm('Unsaved changes', 'You have unsaved changes, do you want to close the current content view and discard your changes?'); } } diff --git a/src/Squidex/app/framework/services/dialog.service.ts b/src/Squidex/app/framework/services/dialog.service.ts index 639917797..5fe0a4b2f 100644 --- a/src/Squidex/app/framework/services/dialog.service.ts +++ b/src/Squidex/app/framework/services/dialog.service.ts @@ -82,10 +82,6 @@ export class DialogService { this.notificationsStream$.next(notification); } - public confirmUnsavedChanges(): Observable { - return this.confirm('Unsaved changes', 'You have unsaved changes, do you want to close the current content view?'); - } - public confirm(title: string, text: string): Observable { const request = new DialogRequest(title, text);