added button edit and delete in presidential action detail view in desktop

This commit is contained in:
tiago.kayaya
2021-12-15 15:07:26 +01:00
parent 5bc5799c58
commit 4d6c2e6775
6 changed files with 87 additions and 23 deletions
@@ -134,6 +134,7 @@
[folderId]="folderId"
class="height-100 d-flex flex-column overflow-hidden flex-grow-1"
(addNewPublication)="addNewPublication($event)"
(editPublication)="editPublication($event)"
(openPublicationDetails)="openPublicationDetails($event)"
(goBacktoPublicationDetails)="goBacktoPublicationDetails()"
(goBackToViewPublications)="goBackToViewPublications()"
@@ -237,9 +237,7 @@ export class PublicationsPage implements OnInit {
}
async deleteAction(id?: string) {
const loader = this.toastService.loading();
try {
await this.publications.DeletePresidentialAction(id).toPromise();
this.toastService._successMessage()
@@ -249,7 +247,6 @@ export class PublicationsPage implements OnInit {
finally {
loader.remove()
}
this.refreshing()
}
@@ -378,10 +375,14 @@ export class PublicationsPage implements OnInit {
}
this.publication = publication;
this.desktopComponent.showAddNewPublication = true;
}
async editPublication(foolderId:string){
this.closeDesktopComponent();
this.desktopComponent.showEditActions = true;
}
async openPublicationDetails(publicationId: string) {
this.publicationId = publicationId;
@@ -404,6 +405,7 @@ export class PublicationsPage implements OnInit {
showAddActions: false,
showEditActions: false,
}
this.idSelected = "";
}
async openOptions(id?: string) {