Skip to content

Instantly share code, notes, and snippets.

@Adarshreddyash
Last active December 27, 2020 04:57
Show Gist options
  • Save Adarshreddyash/dea7f00855d20149296ac1f2c973390b to your computer and use it in GitHub Desktop.
Save Adarshreddyash/dea7f00855d20149296ac1f2c973390b to your computer and use it in GitHub Desktop.
<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