diff --git a/src/app/components/familypending/familypending.component.html b/src/app/components/familypending/familypending.component.html index 015096f..e14114b 100644 --- a/src/app/components/familypending/familypending.component.html +++ b/src/app/components/familypending/familypending.component.html @@ -3,9 +3,13 @@ + Task waiting for you. - + {{item.title}} Ready to Start diff --git a/src/app/components/familypending/familypending.component.scss b/src/app/components/familypending/familypending.component.scss index 32809e3..0dc8a49 100644 --- a/src/app/components/familypending/familypending.component.scss +++ b/src/app/components/familypending/familypending.component.scss @@ -363,7 +363,7 @@ ion-content { min-height: 100px; .famleft{ background-image: url("https://www.wrenchboard.com/assets/images/apps/family/kids-waiting.jpg"); - background-size: cover; + background-size: contain; background-repeat: no-repeat; width:100%; height: 130px; @@ -373,6 +373,7 @@ ion-content { border-radius: 10px; background-color: aliceblue; margin: 5px 0px 10px 0px; + padding: 2px; } .mid_place{ margin: auto; diff --git a/src/app/components/familypending/familypending.component.ts b/src/app/components/familypending/familypending.component.ts index 56731b3..d609fd0 100644 --- a/src/app/components/familypending/familypending.component.ts +++ b/src/app/components/familypending/familypending.component.ts @@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'; import {SessionDataProviderService} from "../../store/session-data-provider.service"; import {AlertController} from "@ionic/angular"; import {WrenchService} from "../../services/wrench.service"; +import {Router} from "@angular/router"; @Component({ selector: 'app-familypending', @@ -11,15 +12,41 @@ import {WrenchService} from "../../services/wrench.service"; export class FamilypendingComponent implements OnInit { constructor( + public router: Router, public sessionDataProviderService: SessionDataProviderService, private alertController:AlertController, private wrenchService: WrenchService) { } ngOnInit() { - this. getMyOffersData(); + this.getMyOffersData(); } - startNewTasks(item){ + async startNewTasks(item){ + // this.sessionDataProviderService.DestroySessionOnLogout(); + // this.router.navigate(['login']); + //this.requestLogout(); + + const alert = await this.alertController.create({ + header: "Start Now ?", + message: "Confirm you are start : "+ item.title , + buttons: [ + { + text: "Cancel", + role: "cancel", + handler: () => { + // this.getMyOffersData(); + }, + }, + { + text: "Start Now", + handler: () => { + // this.sessionDataProviderService.DestroySessionOnLogout(); + this.getMyOffersData(); + }, + }, + ], + }); + await alert.present(); } usrData: {