Skip to content

Commit

Permalink
refactor: wip image uploader, hide progress bar for single image uplo…
Browse files Browse the repository at this point in the history
…ads, fix input css
  • Loading branch information
akinsey committed Sep 23, 2021
1 parent 79fa138 commit 65bf471
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/images/ImageUploader.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<label v-if="purpose === 'avatar'" for="fileInput">Avatar URL</label>
<input type="file" name="fileInput" id="fileInput" @change="uploadFile" ref="fileInput" :multiple="multiple"><br>
<progress ref="progressBar" style="width: 100%" :value="imagesProgress" max="100"></progress>
<progress v-if="!purpose" ref="progressBar" style="width: 100%" :value="imagesProgress" max="100"></progress>
</template>

<script>
Expand Down Expand Up @@ -205,3 +206,9 @@ export default {
}
}
</script>

<style lang="scss">
#fileInput {
height: auto;
}
</style>

0 comments on commit 65bf471

Please sign in to comment.