diff --git a/src/app/components/offers-received/offers-received.component.ts b/src/app/components/offers-received/offers-received.component.ts index fd655ac..74081ec 100644 --- a/src/app/components/offers-received/offers-received.component.ts +++ b/src/app/components/offers-received/offers-received.component.ts @@ -12,7 +12,10 @@ import { BannersDataService } from "../../store/banners-data.service"; }) export class OffersReceivedComponent implements OnInit { //@ViewChild('offerData') offerData: []; + @ViewChild('noLimit') noLimit: boolean; + offerData: []; + //noLimit: boolean=false; offerDataReduced: any; constructor( private navctrl: NavController, @@ -134,7 +137,7 @@ if ( this.currOpenOffer != '' && this.currOpenOffer == item.offer_uid){ reduceOfferData(){ this.offerData = this.bannersDataService.offerData; - if( this.offerData.length >1){ + if( this.offerData.length >1 && this.noLimit == false){ this.offerDataReduced = this.offerData.slice(0,2); } else{ diff --git a/src/app/pages/home/home.page.html b/src/app/pages/home/home.page.html index 14c10b5..3b4f340 100644 --- a/src/app/pages/home/home.page.html +++ b/src/app/pages/home/home.page.html @@ -79,7 +79,7 @@ - +
diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts index b49da2b..ad5726a 100644 --- a/src/app/pages/home/home.page.ts +++ b/src/app/pages/home/home.page.ts @@ -31,6 +31,7 @@ export class HomePage implements OnInit { enableTracking: number = 0; etag: string = ""; home_dash_type: string = "DEFAULT_HOME_DASH"; + noLimit:boolean=false; constructor( private router: Router, diff --git a/src/app/pages/joboffers/joboffers.module.ts b/src/app/pages/joboffers/joboffers.module.ts index af70900..1bd6a15 100644 --- a/src/app/pages/joboffers/joboffers.module.ts +++ b/src/app/pages/joboffers/joboffers.module.ts @@ -7,14 +7,15 @@ import { IonicModule } from '@ionic/angular'; import { JoboffersPageRoutingModule } from './joboffers-routing.module'; import { JoboffersPage } from './joboffers.page'; +import { OffersReceivedComponent } from "../../components/offers-received/offers-received.component"; @NgModule({ imports: [ CommonModule, FormsModule, IonicModule, - JoboffersPageRoutingModule + JoboffersPageRoutingModule, ], - declarations: [JoboffersPage] + declarations: [JoboffersPage,OffersReceivedComponent] }) export class JoboffersPageModule {} diff --git a/src/app/pages/joboffers/joboffers.page.html b/src/app/pages/joboffers/joboffers.page.html index fc60477..ef85067 100644 --- a/src/app/pages/joboffers/joboffers.page.html +++ b/src/app/pages/joboffers/joboffers.page.html @@ -17,108 +17,111 @@ You have {{total_offers}} Offer(s)
-
- - - - {{item.title}} - -
-
- - - - - {{item.title}} - - -
-
{{item.title}}
-
Expiration : {{item.expire | date}}
-
Price : {{item.price*0.01| number : '1.2-2'}} {{item.currency}}
-
- -
- {{(item.job_description.length<95)? item.job_description :item.job_description.substring(0,95)+'...' }} -
+ -
-
- - - - - - Reject - - + + + + + + + + - - - Start Now - - - + + + + + + + + + + + - - -
+ + + -
-
-
-
-
+ + + + + + + + + + -
-
-
+ + + + + + - - - - {{item.title}} - - -
-
{{item.title}}
-
Expiration : {{item.expire | date}}
-
Price : {{item.price*0.01| number : '1.2-2'}} {{item.currency}}
-
- -
- {{(item.job_description.length<95)? item.job_description :item.job_description.substring(0,95)+'...' }} -
+ + + -
-
- - - - - - Reject - - + + + + + - - - Start Now - - - + + + - - -
+ + + + + + + + + + + + + + + -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/pages/joboffers/joboffers.page.ts b/src/app/pages/joboffers/joboffers.page.ts index ce35dd2..9d4b5ec 100644 --- a/src/app/pages/joboffers/joboffers.page.ts +++ b/src/app/pages/joboffers/joboffers.page.ts @@ -10,6 +10,7 @@ import {SessionDataProviderService} from "../../store/session-data-provider.serv }) export class JoboffersPage implements OnInit { + noLimit:boolean=true; tabs = 'about'; @@ -23,7 +24,7 @@ export class JoboffersPage implements OnInit { ) { } ngOnInit() { - this.getMyOffersData(); + // this.getMyOffersData(); } onBack() {