mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
fix goback
This commit is contained in:
@@ -76,6 +76,11 @@ import * as Sentry from '@sentry/capacitor';
|
||||
import { Integration } from '@sentry/types';
|
||||
import { BrowserTracing } from '@sentry/tracing';
|
||||
|
||||
// import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
// import { AngularFireModule } from '@angular/fire';
|
||||
// import { AngularFireMessagingModule } from '@angular/fire/messaging';
|
||||
// import { environment } from 'src/environments/environment';
|
||||
|
||||
/* import { FCM } from '@ionic-native/fcm/ngx';
|
||||
import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
||||
//import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
|
||||
@@ -108,7 +113,8 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
||||
provide: DateAdapter,
|
||||
useFactory: adapterFactory
|
||||
}),
|
||||
|
||||
//AngularFireModule.initializeApp(environment.firebase),
|
||||
//AngularFireMessagingModule,
|
||||
IonicImageLoaderModule,
|
||||
IonicModule.forRoot({animated: false}),
|
||||
IonicStorageModule.forRoot({
|
||||
|
||||
+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