Hi. I want to ask. I had try your code and it works. I don't want to show the snackbar message. So I deleted this code : <v-snackbar bottom right :value="updateExists" :timeout="0" color="primary">
An update is available
<v-btn text @click="refreshApp">
Update
</v-btn>
</v-snackbar>. It worked and there were no problems. Changes are automatically updated without clicking the update button. How do you think?
I try another option like this : methods: {
updateAvailable (event) {
this.registration = event.detail
this.updateExists = true
this.refreshApp()
}. So if detect new version, it immediately called refreshApp method. So user don't need to click the update button
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi. I want to ask. I had try your code and it works. I don't want to show the snackbar message. So I deleted this code :
<v-snackbar bottom right :value="updateExists" :timeout="0" color="primary">
. It worked and there were no problems. Changes are automatically updated without clicking the update button. How do you think?An update is available
<v-btn text @click="refreshApp">
Update
</v-btn>
</v-snackbar>
I try another option like this :
methods: {
. So if detect new version, it immediately called refreshApp method. So user don't need to click the update buttonupdateAvailable (event) {
this.registration = event.detail
this.updateExists = true
this.refreshApp()
}