diff options
Diffstat (limited to 'src/components/mao-tutoring.js')
-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() } } |