Fix delete publication

This commit is contained in:
Peter Maquiran
2021-07-13 16:53:11 +01:00
parent 085587e9c8
commit 201a56a1c3
6 changed files with 34 additions and 10 deletions
@@ -34,6 +34,7 @@ export class EditActionPage implements OnInit {
@Input() folderId: string;
@Output() closeDesktopComponent= new EventEmitter<any>();
@Output() updateDesktopComponent= new EventEmitter<any>();
@Output() getActions= new EventEmitter<any>();
constructor(
private publicationsService: PublicationsService,
@@ -103,6 +104,8 @@ export class EditActionPage implements OnInit {
this.close();
this.updateDesktopComponent.emit();
this.toastService.successMessage('Acção presidencial atualizada')
this.getActions.emit()
} catch (error) {
this.toastService.badRequest('Não foi possivel atualizar a acção presidencial')
} finally {