it move file to another folder in upload request

This commit is contained in:
Čarodej
2022-02-23 11:13:29 +01:00
parent eb7b319ebd
commit 047b907c60
10 changed files with 116 additions and 31 deletions

View File

@@ -58,7 +58,10 @@ const actions = {
if (!noSelectedItem) commit('CLIPBOARD_CLEAR')
// Get route
let route = getters.sharedDetail ? `/api/editor/move/${router.currentRoute.params.token}` : '/api/move'
let route = {
RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/move`,
Public: `/api/editor/move/${router.currentRoute.params.token}`,
}[router.currentRoute.name] || '/api/move'
let moveToId = null