Browse Source

Warning fixed

pull/261/head
Sebastian Stehle 9 years ago
parent
commit
19647d3501
  1. 5
      src/Squidex/app/features/settings/pages/backups/backups-page.component.ts

5
src/Squidex/app/features/settings/pages/backups/backups-page.component.ts

@ -13,7 +13,6 @@ import {
AppContext, AppContext,
BackupDto, BackupDto,
BackupsService, BackupsService,
DateTime,
Duration, Duration,
ImmutableArray ImmutableArray
} from 'shared'; } from 'shared';
@ -54,7 +53,7 @@ export class BackupsPageComponent implements OnInit, OnDestroy {
public startBackup() { public startBackup() {
this.backupsService.postBackup(this.ctx.appName) this.backupsService.postBackup(this.ctx.appName)
.subscribe(() => { .subscribe(() => {
this.ctx.notifyInfo('Backup started.'); this.ctx.notifyInfo('Backup started, it can take several minutes to complete.');
}, error => { }, error => {
this.ctx.notifyError(error); this.ctx.notifyError(error);
}); });
@ -63,7 +62,7 @@ export class BackupsPageComponent implements OnInit, OnDestroy {
public deleteBackup(backup: BackupDto) { public deleteBackup(backup: BackupDto) {
this.backupsService.deleteBackup(this.ctx.appName, backup.id) this.backupsService.deleteBackup(this.ctx.appName, backup.id)
.subscribe(() => { .subscribe(() => {
this.ctx.notifyInfo('Backup deleting.'); this.ctx.notifyInfo('Backup is about to be deleted.');
}, error => { }, error => {
this.ctx.notifyError(error); this.ctx.notifyError(error);
}); });

Loading…
Cancel
Save