diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 14:48:13 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 14:48:13 -0400 |
| commit | f32d184caca594c71fa7b947ae12ea991b1fc031 (patch) | |
| tree | fa05567ce7fc1bddf317161e91eb00ed90e7c68b /src/components | |
| parent | 63fc9b25815da079f3559d6b794b57e57db0040f (diff) | |
Created own store for firebaseStorage. Added basic upload method.
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/mao-tutoring.js | 8 |
1 files changed, 4 insertions, 4 deletions
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() } } |
