Improve home publication

This commit is contained in:
Peter Maquiran
2021-03-15 16:47:16 +01:00
parent 6c0c7173e8
commit 309e81d26c
14 changed files with 396 additions and 37 deletions
@@ -34,11 +34,13 @@ export class PublicationsPage implements OnInit {
desktopComponent: any = {
showViewPublication: false,
showAddNewPublication: false
showAddNewPublication: false,
showPublicationDetail: false
}
folderId: string;
publicationType: any;
publicationId: string;
constructor(
private router: Router,
@@ -181,14 +183,21 @@ export class PublicationsPage implements OnInit {
this.desktopComponent.showAddNewPublication = true;
}
async closeDesktopComponent (){
async openPublicationDetails(publicationId: string){
this.publicationId = publicationId;
this.closeDesktopComponent();
this.desktopComponent.showPublicationDetail = true;
this.desktopComponent.showViewPublication = false;
this.desktopComponent.showAddNewPublication = false;
}
async closeDesktopComponent (xx?: any){
this.desktopComponent = {
showViewPublication: false,
showAddNewPublication: false
showAddNewPublication: false,
showPublicationDetail: false
}
}