Last active
December 27, 2020 04:57
-
-
Save Adarshreddyash/dea7f00855d20149296ac1f2c973390b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<v-btn | |
color="green" | |
x-small | |
<!-- v-show="!$store.state.authUser.avatar" Iam using vuex to show the button when user is having no avatar--> | |
outlined | |
:loading="isSelecting" | |
@click="onButtonClick" | |
> | |
<v-icon left>mdi-cloud-upload-outline</v-icon>upload picture | |
</v-btn> | |
<input | |
type="file" | |
ref="uploader" <!-- using refs to reference it to above button --> | |
class="d-none" | |
accept="image/*" | |
@change="uploadImage($event)" | |
id="file-input" | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment