Browse Source

Small text improvement.

pull/329/head
Sebastian Stehle 7 years ago
parent
commit
bb53075428
  1. 2
      src/Squidex/app/features/content/pages/content/content-page.component.ts
  2. 4
      src/Squidex/app/framework/services/dialog.service.ts

2
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) { if (!this.contentForm.form.dirty || !this.content) {
return of(true); return of(true);
} else { } 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?');
} }
} }

4
src/Squidex/app/framework/services/dialog.service.ts

@ -82,10 +82,6 @@ export class DialogService {
this.notificationsStream$.next(notification); this.notificationsStream$.next(notification);
} }
public confirmUnsavedChanges(): Observable<boolean> {
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<boolean> { public confirm(title: string, text: string): Observable<boolean> {
const request = new DialogRequest(title, text); const request = new DialogRequest(title, text);

Loading…
Cancel
Save