mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
reload view after remote upload was finished
This commit is contained in:
@@ -948,5 +948,6 @@ return [
|
|||||||
'remote_links_help' => 'For every line paste one link',
|
'remote_links_help' => 'For every line paste one link',
|
||||||
'paste_remote_links_here' => 'Paste your remote links here...',
|
'paste_remote_links_here' => 'Paste your remote links here...',
|
||||||
'remote_download_submitted' => 'Your links will be downloaded as soon as possible',
|
'remote_download_submitted' => 'Your links will be downloaded as soon as possible',
|
||||||
|
'remote_download_processed' => 'Your links were processed successfully',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"/chunks/environment.js": "/chunks/environment.js?id=784c2442268b36dc",
|
"/chunks/environment.js": "/chunks/environment.js?id=784c2442268b36dc",
|
||||||
"/chunks/app-setup.js": "/chunks/app-setup.js?id=cbe7bfed06400736",
|
"/chunks/app-setup.js": "/chunks/app-setup.js?id=cbe7bfed06400736",
|
||||||
"/chunks/admin-account.js": "/chunks/admin-account.js?id=78d257775f5fc485",
|
"/chunks/admin-account.js": "/chunks/admin-account.js?id=78d257775f5fc485",
|
||||||
"/chunks/shared.js": "/chunks/shared.js?id=76d00e2402745b07",
|
"/chunks/shared.js": "/chunks/shared.js?id=e065eb78d6cc3b7d",
|
||||||
"/chunks/shared/browser.js": "/chunks/shared/browser.js?id=d2fff07a2bc7af3f",
|
"/chunks/shared/browser.js": "/chunks/shared/browser.js?id=d2fff07a2bc7af3f",
|
||||||
"/chunks/shared/single-file.js": "/chunks/shared/single-file.js?id=a6063bed9be75a09",
|
"/chunks/shared/single-file.js": "/chunks/shared/single-file.js?id=a6063bed9be75a09",
|
||||||
"/chunks/shared/authenticate.js": "/chunks/shared/authenticate.js?id=b5519d193bce2339",
|
"/chunks/shared/authenticate.js": "/chunks/shared/authenticate.js?id=b5519d193bce2339",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"/chunks/settings-password.js": "/chunks/settings-password.js?id=d00bf503d8126dc4",
|
"/chunks/settings-password.js": "/chunks/settings-password.js?id=d00bf503d8126dc4",
|
||||||
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=092e324aad54656b",
|
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=092e324aad54656b",
|
||||||
"/chunks/billing.js": "/chunks/billing.js?id=115c25478cee576d",
|
"/chunks/billing.js": "/chunks/billing.js?id=115c25478cee576d",
|
||||||
"/chunks/platform.js": "/chunks/platform.js?id=780d762236b079cf",
|
"/chunks/platform.js": "/chunks/platform.js?id=735f8aa44b87d0c4",
|
||||||
"/chunks/files.js": "/chunks/files.js?id=aaea9173f7697d6e",
|
"/chunks/files.js": "/chunks/files.js?id=aaea9173f7697d6e",
|
||||||
"/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=4bab41df721a6fc6",
|
"/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=4bab41df721a6fc6",
|
||||||
"/chunks/my-shared-items.js": "/chunks/my-shared-items.js?id=c62bc3eb07de20df",
|
"/chunks/my-shared-items.js": "/chunks/my-shared-items.js?id=c62bc3eb07de20df",
|
||||||
|
|||||||
@@ -93,10 +93,13 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
events.$emit('toaster', {
|
events.$emit('toaster', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: this.$t('remote_download_submitted'),
|
message: this.$t('remote_download_processed'),
|
||||||
})
|
})
|
||||||
|
|
||||||
events.$emit('popup:close')
|
events.$emit('popup:close')
|
||||||
|
|
||||||
|
// Reload data
|
||||||
|
this.$getDataByLocation()
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (error.response.status === 422) {
|
if (error.response.status === 422) {
|
||||||
|
|||||||
@@ -27,9 +27,7 @@ class RemoteUploadFileController extends Controller
|
|||||||
: auth()->user();
|
: auth()->user();
|
||||||
|
|
||||||
// Execute job for get content from url and save
|
// Execute job for get content from url and save
|
||||||
($this->getContentFromExternalSource)
|
($this->getContentFromExternalSource)($request->all(), $user);
|
||||||
->onQueue()
|
|
||||||
->execute($request->all(), $user);
|
|
||||||
|
|
||||||
return response('Files were successfully added to the upload queue', 201);
|
return response('Files were successfully added to the upload queue', 201);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user