Learn more added

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 23:57:05 -04:00
parent a05e84a8d7
commit dc71886508
9 changed files with 97 additions and 0 deletions
+5
View File
@@ -298,6 +298,11 @@ const routes: Routes = [
path: 'familyconnectaction',
loadChildren: () => import('./pages/familyconnectaction/familyconnectaction.module').then(m => m.FamilyconnectactionPageModule)
},
{
path: 'learnmore',
loadChildren: () => import('./pages/learnmore/learnmore.module').then(m => m.LearnmorePageModule)
},
// {
// path: 'startlogin',
// loadChildren: () => import('./pages/startlogin/startlogin.module').then(m => m.StartloginPageModule)
@@ -81,6 +81,8 @@ export class OffersReceivedComponent implements OnInit {
handler: () => {
this.sendOfferResponse(item, 100);
this.reduceOfferData(); // = this.bannersDataService.offerData;
// redirect to task page
// this.router.navigate(['activetask'],{state: item});
},
},
],
@@ -156,6 +158,10 @@ export class OffersReceivedComponent implements OnInit {
const refresh_banner = new CustomEvent("app-banner-refresh-nocache");
dispatchEvent(refresh_banner);
if( respType == 100 ){ // only in acceptance approval
this.router.navigate(['activetask'],{state: this.offerRespData});
}
this.reduceOfferData();
}
);
@@ -38,6 +38,7 @@ export class ActivetaskPage implements OnInit {
) {
this.yourmessage='';
this.jobData = this.router.getCurrentNavigation().extras.state;
// debugger;
console.log("XXXXX 1", this.router.getCurrentNavigation().extras);
console.log("XXXXX 2", this.router.getCurrentNavigation().extras.state);
//console.log("XXXXX 3", this.router.getCurrentNavigation().extras.state.ID);
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LearnmorePage } from './learnmore.page';
const routes: Routes = [
{
path: '',
component: LearnmorePage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class LearnmorePageRoutingModule {}
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { LearnmorePageRoutingModule } from './learnmore-routing.module';
import { LearnmorePage } from './learnmore.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
LearnmorePageRoutingModule
],
declarations: [LearnmorePage]
})
export class LearnmorePageModule {}
@@ -0,0 +1,9 @@
<ion-header>
<ion-toolbar>
<ion-title>learnmore</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { LearnmorePage } from './learnmore.page';
describe('LearnmorePage', () => {
let component: LearnmorePage;
let fixture: ComponentFixture<LearnmorePage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ LearnmorePage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(LearnmorePage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
+15
View File
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-learnmore',
templateUrl: './learnmore.page.html',
styleUrls: ['./learnmore.page.scss'],
})
export class LearnmorePage implements OnInit {
constructor() { }
ngOnInit() {
}
}