From d99cf5df06f810ed976eb60564790be3143bf0e7 Mon Sep 17 00:00:00 2001 From: Gerrit van Huyssteen Date: Fri, 9 Mar 2018 20:13:15 +0200 Subject: [PATCH 1/2] fix: Support Page - Clicking the button navigates to the schedule page --- src/components/page-support/page-support.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/page-support/page-support.tsx b/src/components/page-support/page-support.tsx index 45b22fd..632c443 100644 --- a/src/components/page-support/page-support.tsx +++ b/src/components/page-support/page-support.tsx @@ -27,7 +27,8 @@ export class PageSupport { toast.present(); } - async submit() { + async handleSubmit(e) { + e.preventDefault(); this.submitted = true; if (this.supportQuestion.valid) { @@ -80,7 +81,7 @@ export class PageSupport { Ionic Logo -
+ this.handleSubmit(e)}> Enter your support message below From 1c4899b645937ffc023a8fc7e49e92acc6e1f02d Mon Sep 17 00:00:00 2001 From: Gerrit van Huyssteen Date: Fri, 9 Mar 2018 20:16:41 +0200 Subject: [PATCH 2/2] fix: Support Page - The toast isn't showing on click --- src/components/page-support/page-support.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/page-support/page-support.tsx b/src/components/page-support/page-support.tsx index 632c443..f447221 100644 --- a/src/components/page-support/page-support.tsx +++ b/src/components/page-support/page-support.tsx @@ -43,6 +43,11 @@ export class PageSupport { } } + handleSupportQuestion(ev) { + this.supportMessage = ev.target.value; + this.supportQuestion.valid = this.supportMessage.trim().length > 0; + } + // If the user enters text in the support question and then navigates // without submitting first, ask if they meant to leave the page ionViewCanLeave() { @@ -85,7 +90,7 @@ export class PageSupport { Enter your support message below - + this.handleSupportQuestion(e)}>