Improve publicaton page

This commit is contained in:
Peter Maquiran
2021-03-17 10:57:16 +01:00
parent 6788c7b6d2
commit 65b1d67ab3
4 changed files with 51 additions and 5 deletions
@@ -203,13 +203,18 @@ export class PublicationsPage implements OnInit {
}
// add new publication or edit publicaton
async addNewPublication({publicationType, folderId, publication}){
this.closeDesktopComponent();
// propr to add new publication
this.publicationType = publicationType;
this.folderId = folderId;
// edit publication will send null
if (folderId != undefined) {
this.folderId = folderId;
}
this.publication = publication;
this.desktopComponent.showAddNewPublication = true;