mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
fix goback
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="end" src='assets/images/theme/gov/icons-calendar-arrow-left.svg'></ion-icon>
|
||||
</div>
|
||||
<div class="div-title">
|
||||
<ion-label class="title"> {{publication.Title}}</ion-label>
|
||||
<ion-label class="title"> {{publication.Title}} ..</ion-label>
|
||||
<p class="post-data">{{publication.DatePublication | date: 'dd-MM-yy | h:mm'}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+3
-3
@@ -33,10 +33,11 @@ export class PublicationDetailPage implements OnInit {
|
||||
) {
|
||||
|
||||
this.activatedRoute.paramMap.subscribe(params => {
|
||||
|
||||
console.log(params["params"])
|
||||
if(params["params"]) {
|
||||
this.folderId = params["params"].folderId;
|
||||
this.publicationId = params["params"].publicationId;
|
||||
this.isModal = params["params"].isModal;
|
||||
//
|
||||
}
|
||||
});
|
||||
@@ -92,10 +93,9 @@ export class PublicationDetailPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
if(this.isModal) {
|
||||
if(!window.location.href.includes('/home/publications/view-publications')) {
|
||||
this.close()
|
||||
} else {
|
||||
// alert('go back')
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
|
||||
@@ -272,6 +272,7 @@ export class ViewPublicationsPage implements OnInit {
|
||||
componentProps: {
|
||||
publicationId: publicationId,
|
||||
folderId: this.folderId,
|
||||
isModal: true
|
||||
},
|
||||
cssClass: 'publication-detail modal modal-desktop',
|
||||
// backdropDismiss: false
|
||||
|
||||
Reference in New Issue
Block a user