From ec532caa720ef002477b9ef255186d2dd0df8473 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 21 Sep 2023 09:00:52 -0400 Subject: [PATCH] Suggest details --- REMEMBER.txt | 1 + src/app/app-routing.module.ts | 4 ++++ .../suggestedlist/suggestedlist.component.html | 2 +- .../suggestedlist/suggestedlist.component.ts | 11 +++++++++-- src/app/pages/familylogin/familylogin.page.scss | 2 +- src/app/pages/forgot/forgot.page.html | 4 ++-- src/app/pages/forgot/forgot.page.scss | 2 +- src/app/pages/register/register.page.scss | 2 +- 8 files changed, 20 insertions(+), 8 deletions(-) diff --git a/REMEMBER.txt b/REMEMBER.txt index b16507c..bbf540b 100644 --- a/REMEMBER.txt +++ b/REMEMBER.txt @@ -32,3 +32,4 @@ https://github.com/capacitor-community/barcode-scanner ionic generate page startscan ionic generate page suggest +ionic generate page suggestdetails diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 78f3873..8ce92d3 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -222,6 +222,10 @@ const routes: Routes = [ path: 'suggest', loadChildren: () => import('./pages/suggest/suggest.module').then(m => m.SuggestPageModule) }, + { + path: 'suggestdetails', + loadChildren: () => import('./pages/suggestdetails/suggestdetails.module').then(m => m.SuggestdetailsPageModule) + }, ]; @NgModule({ diff --git a/src/app/components/suggestedlist/suggestedlist.component.html b/src/app/components/suggestedlist/suggestedlist.component.html index d37845a..fcc1acf 100644 --- a/src/app/components/suggestedlist/suggestedlist.component.html +++ b/src/app/components/suggestedlist/suggestedlist.component.html @@ -1,5 +1,5 @@ -
+
diff --git a/src/app/components/suggestedlist/suggestedlist.component.ts b/src/app/components/suggestedlist/suggestedlist.component.ts index 53a64a6..0a47146 100644 --- a/src/app/components/suggestedlist/suggestedlist.component.ts +++ b/src/app/components/suggestedlist/suggestedlist.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit } from '@angular/core'; import {SessionDataProviderService} from "../../store/session-data-provider.service"; import {WrenchService} from "../../services/wrench.service"; +import {Router} from "@angular/router"; @Component({ selector: 'app-suggestedlist', @@ -9,8 +10,10 @@ import {WrenchService} from "../../services/wrench.service"; }) export class SuggestedlistComponent implements OnInit { - constructor(public sessionDataProviderService: SessionDataProviderService, - private wrenchService: WrenchService) { } + constructor( + public sessionDataProviderService: SessionDataProviderService, + private wrenchService: WrenchService, + private router: Router,) { } ngOnInit() { this.getFamilySuggestList(); @@ -41,4 +44,8 @@ export class SuggestedlistComponent implements OnInit { } ); } + + getSuggestedDetails(item){ + this.router.navigate(['suggestdetails'],{state: item}); + } } diff --git a/src/app/pages/familylogin/familylogin.page.scss b/src/app/pages/familylogin/familylogin.page.scss index 5c8e478..05f60b5 100644 --- a/src/app/pages/familylogin/familylogin.page.scss +++ b/src/app/pages/familylogin/familylogin.page.scss @@ -50,7 +50,7 @@ ion-content { } ion-button { - --border-radius: 10px; + --border-radius: 40px; margin-top: 1.5rem; height: 50px; } diff --git a/src/app/pages/forgot/forgot.page.html b/src/app/pages/forgot/forgot.page.html index 2ccff64..76fe6bc 100644 --- a/src/app/pages/forgot/forgot.page.html +++ b/src/app/pages/forgot/forgot.page.html @@ -29,7 +29,7 @@ Enter your registered email - + @@ -45,7 +45,7 @@ Code has been sent to the your registered email - + diff --git a/src/app/pages/forgot/forgot.page.scss b/src/app/pages/forgot/forgot.page.scss index 254d9ce..6b4a3f8 100644 --- a/src/app/pages/forgot/forgot.page.scss +++ b/src/app/pages/forgot/forgot.page.scss @@ -36,7 +36,7 @@ ion-content { } ion-button { - --border-radius: 10px; + --border-radius: 40px; margin-top: 2.5rem; height: 50px; } diff --git a/src/app/pages/register/register.page.scss b/src/app/pages/register/register.page.scss index 04b954b..fedaf34 100644 --- a/src/app/pages/register/register.page.scss +++ b/src/app/pages/register/register.page.scss @@ -29,7 +29,7 @@ ion-content { } ion-button { - --border-radius: 10px; + --border-radius: 40px; margin-top: 2.5rem; height: 50px; }