From f32d184caca594c71fa7b947ae12ea991b1fc031 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 13 Aug 2018 14:48:13 -0400 Subject: Created own store for firebaseStorage. Added basic upload method. --- src/components/mao-tutoring.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js index 8acac5b..936773a 100644 --- a/src/components/mao-tutoring.js +++ b/src/components/mao-tutoring.js @@ -17,8 +17,9 @@ import { store } from '../store.js'; //These are the actions needed by this element. import { requestHours } from '../actions/firebaseFirestore.js'; +import { uploadPicture} from '../actions/firebaseStorage.js' -// These are the shared styles needed by this element. +// These are the }shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; import { ButtonSharedStyles } from './button-shared-styles.js'; @@ -342,7 +343,7 @@ class MaoTutoring extends connect(store)(PageViewElement) { } } } else { - alert("You must upload an image.") + alert("You must upload an image to submit hours.") } } @@ -351,8 +352,7 @@ class MaoTutoring extends connect(store)(PageViewElement) { var uploader = this.shadowRoot.getElementById('uploader'); var file = this.shadowRoot.getElementById('pictureField').files[0]; - uploader.value = 100; - console.log(file); + store.dispatch() } } -- cgit v1.2.3-70-g09d2