diff options
author | Phil Hughes <me@iamphill.com> | 2018-08-29 18:05:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-08-29 18:05:30 +0300 |
commit | 3a283fa861451a2061c925dbc2d5a480325aecc8 (patch) | |
tree | 4f16fd56584814e6bf7b8c87ebe8353f8302c176 /app/assets/javascripts | |
parent | 42523a415df7b58bceb5d5d515e57bda180c02d8 (diff) |
Enabled multiple uploads in the Web IDE
Closes #50405
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/ide/components/new_dropdown/upload.vue | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/assets/javascripts/ide/components/new_dropdown/upload.vue b/app/assets/javascripts/ide/components/new_dropdown/upload.vue index 5b1743bb30e..e2be805ed22 100644 --- a/app/assets/javascripts/ide/components/new_dropdown/upload.vue +++ b/app/assets/javascripts/ide/components/new_dropdown/upload.vue @@ -24,12 +24,6 @@ export default { default: null, }, }, - mounted() { - this.$refs.fileUpload.addEventListener('change', this.openFile); - }, - beforeDestroy() { - this.$refs.fileUpload.removeEventListener('change', this.openFile); - }, methods: { createFile(target, file, isText) { const { name } = file; @@ -85,6 +79,8 @@ export default { ref="fileUpload" type="file" class="hidden" + multiple + @change="openFile" /> </div> </template> |