remote upload demo functionality

This commit is contained in:
Čarodej
2022-04-25 12:11:37 +02:00
parent e769c33af6
commit 01735b4e1f
12 changed files with 25 additions and 13 deletions

View File

@@ -80,6 +80,18 @@ export default {
.replace(/^(?=\n)$|^\s*|\s*$|\n\n+/gm, "")
.split(/\r?\n/)
// If demo, return success message
if (this.$store.getters.config.isDemo) {
events.$emit('toaster', {
type: 'success',
message: i18n.t('remote_download_finished'),
})
events.$emit('popup:close')
return
}
// If broadcasting
if (this.$store.getters.isBroadcasting) {
this.$store.commit('UPDATE_REMOTE_UPLOAD_QUEUE', {