diff --git a/src/app/components/suggestedlist/suggestedlist.component.html b/src/app/components/suggestedlist/suggestedlist.component.html index a1d00bd..89f9f77 100644 --- a/src/app/components/suggestedlist/suggestedlist.component.html +++ b/src/app/components/suggestedlist/suggestedlist.component.html @@ -3,8 +3,8 @@ - - Suggested Tasks + + Suggested Tasks diff --git a/src/app/components/suggestedlist/suggestedlist.component.scss b/src/app/components/suggestedlist/suggestedlist.component.scss index f27d138..b91d508 100644 --- a/src/app/components/suggestedlist/suggestedlist.component.scss +++ b/src/app/components/suggestedlist/suggestedlist.component.scss @@ -367,6 +367,10 @@ ion-content { height: 130px; border-radius: 10px 0px 0px 10px; } + .mid_place{ + margin: auto; + text-align: center; + } } ion-footer { diff --git a/src/app/pages/suggest/suggest.page.html b/src/app/pages/suggest/suggest.page.html index fa9f1c0..dde9697 100644 --- a/src/app/pages/suggest/suggest.page.html +++ b/src/app/pages/suggest/suggest.page.html @@ -1,11 +1,16 @@ + + + + + + + + Suggest Task(s) + + + -
-
- -
-
-
@@ -77,6 +82,51 @@
+ + + + + + + + + Suggest Task + + + + + + + + + {{modalSeleted.title}} + + + {{modalSeleted.title}} + + + + {{modalSeleted.description}} + + + + + + + + + + + + + Cancel + + + + + + + diff --git a/src/app/pages/suggest/suggest.page.ts b/src/app/pages/suggest/suggest.page.ts index 25fab49..e74c97e 100644 --- a/src/app/pages/suggest/suggest.page.ts +++ b/src/app/pages/suggest/suggest.page.ts @@ -1,8 +1,9 @@ -import { Component, OnInit } from '@angular/core'; -import {NavController} from "@ionic/angular"; +import {Component, OnInit, ViewChild} from '@angular/core'; +import {IonModal, NavController} from "@ionic/angular"; import {Router} from "@angular/router"; import {WrenchService} from "../../services/wrench.service"; import {SessionDataProviderService} from "../../store/session-data-provider.service"; +import { OverlayEventDetail } from '@ionic/core/components'; @Component({ selector: 'app-suggest', @@ -10,7 +11,7 @@ import {SessionDataProviderService} from "../../store/session-data-provider.serv styleUrls: ['./suggest.page.scss'], }) export class SuggestPage implements OnInit { - + @ViewChild(IonModal) modal: IonModal; tabs = 'about'; @@ -65,8 +66,29 @@ export class SuggestPage implements OnInit { ); } - +modalSeleted:any; suggestDetails(item){ + this.modalSeleted = item; +this.modal.present(); + } + + + message = 'This modal example uses triggers to automatically open a modal when the button is clicked.'; + name: string; + + cancel() { + this.modal.dismiss(null, 'cancel'); + } + + confirm() { + this.modal.dismiss(this.name, 'confirm'); + } + + onWillDismiss(event: Event) { + const ev = event as CustomEvent>; + if (ev.detail.role === 'confirm') { + this.message = `Hello, ${ev.detail.data}!`; + } } }