fix(download): Redirect when there is no gif

This commit is contained in:
Tixie 2019-04-05 04:05:11 +02:00
parent d84307dbc4
commit 4e5a57c72c

View file

@ -28,6 +28,14 @@ export default {
this.$store.commit('stopDownloading')
this.$router.push({ name: 'capture' })
}
},
created () {
if (this.downloading.objectUrl === null) {
this.$router.push({ name: 'home' })
}
},
destroyed () {
this.$store.commit('stopDownloading')
}
}
</script>