From 5845a05a46b177fc26350d3c2a30f728c4bf4483 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Thu, 2 Aug 2018 01:21:58 -0400 Subject: Added divison field to accounts. Will implement in the future. --- src/components/mao-account.js | 10 ++++++++-- src/components/mao-tutoring.js | 2 -- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/mao-account.js b/src/components/mao-account.js index 72eb8b8..7a654fd 100644 --- a/src/components/mao-account.js +++ b/src/components/mao-account.js @@ -131,6 +131,9 @@ class MaoAccount extends connect(store)(PageViewElement) { + + +
@@ -169,7 +172,7 @@ class MaoAccount extends connect(store)(PageViewElement) { + "@communityschoolnaples.org"; const password = passwordElement.value; - store.dispatch(signIn(email,password)); + store.dispatch(signIn(email,password,null)); emailElement.value = ""; passwordElement.value = ""; @@ -198,6 +201,7 @@ class MaoAccount extends connect(store)(PageViewElement) { makeAccount() { var emailElement = this.shadowRoot.getElementById('createEmailField'); var passwordElement = this.shadowRoot.getElementById('createPasswordField'); + var divisionElement = this.shadowRoot.getElementById('createDivisionField'); if( emailElement.value.includes('2019') || emailElement.value.includes('2020') @@ -206,14 +210,16 @@ class MaoAccount extends connect(store)(PageViewElement) { const email = emailElement.value + "@communityschoolnaples.org"; const password = passwordElement.value; + const division = divisionElement.value; - store.dispatch(createAccount(email,password)); + store.dispatch(createAccount(email,password,division)); } else { alert('Please use a validated email.'); } emailElement.value = ""; passwordElement.value = ""; + divisionElement.value = ""; } } diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js index bca76c1..707f0be 100644 --- a/src/components/mao-tutoring.js +++ b/src/components/mao-tutoring.js @@ -164,7 +164,6 @@ class MaoTutoring extends connect(store)(PageViewElement) {

Approved Hours

@@ -172,7 +171,6 @@ class MaoTutoring extends connect(store)(PageViewElement) {

Requested Hours

-- cgit v1.2.3-70-g09d2