mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer
This commit is contained in:
+6
-8
@@ -25,8 +25,8 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
private animationController: AnimationController,
|
private animationController: AnimationController,
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
this.activatedRoute.paramMap.subscribe(params => {
|
this.activatedRoute.paramMap.subscribe(params => {
|
||||||
console.log(params);
|
console.log(params);
|
||||||
@@ -36,7 +36,7 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
console.log(params["params"]);
|
console.log(params["params"]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: null,
|
DateIndex: null,
|
||||||
DocumentId: '',
|
DocumentId: '',
|
||||||
@@ -104,16 +104,14 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.publications.DeletePublication(this.folderId, this.publicationId).toPromise();
|
await this.publications.DeletePublication(this.folderId, this.publicationId).toPromise();
|
||||||
this.toastService.successMessage('Publicaçao eliminado')
|
this.toastService.successMessage('Publicaçao eliminada')
|
||||||
|
|
||||||
this.close();
|
|
||||||
//this.goBackToViewPublications.emit();
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Publicaçao não eliminado')
|
this.toastService.badRequest('Publicaçao não eliminada')
|
||||||
} finally {
|
} finally {
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
this.goBack();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user