mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
remote upload demo functionality
This commit is contained in:
@@ -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', {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<transition name="popup">
|
||||
<div v-if="remoteUploadQueue" class="fixed left-0 right-0 bottom-8 text-center select-none pointer-events-none z-10">
|
||||
<div class="relative inline-block rounded-lg overflow-hidden bg-theme shadow-[#ff8200]/40 shadow-lg px-3 py-2">
|
||||
<div class="relative inline-block rounded-lg overflow-hidden bg-theme shadow-lg px-3 py-2">
|
||||
<div class="flex items-center">
|
||||
<RefreshCwIcon size="14" class="vue-feather text-white animate-[spin_2s_linear_infinite] z-10 relative" />
|
||||
<span class="text-xs font-bold text-white z-10 relative ml-2 dark:text-black">
|
||||
|
||||
Reference in New Issue
Block a user