mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
vuefilemanager v1.5-alpha.1
This commit is contained in:
8
resources/js/store/modules/sharing.js
vendored
8
resources/js/store/modules/sharing.js
vendored
@@ -6,12 +6,12 @@ import axios from 'axios'
|
||||
const defaultState = {
|
||||
permissionOptions: [
|
||||
{
|
||||
label: 'Can edit and upload files',
|
||||
label: i18n.t('shared.editor'),
|
||||
value: 'editor',
|
||||
icon: 'user-edit',
|
||||
},
|
||||
{
|
||||
label: 'Can only view and download',
|
||||
label: i18n.t('shared.visitor'),
|
||||
value: 'visitor',
|
||||
icon: 'user',
|
||||
},
|
||||
@@ -74,7 +74,9 @@ const actions = {
|
||||
},
|
||||
getSingleFile: ({commit, state}) => {
|
||||
|
||||
let route = state.sharedDetail.protected ? '/api/files/private' : '/api/files/' + router.currentRoute.params.token + '/public'
|
||||
let route = state.sharedDetail.protected
|
||||
? '/api/files/private'
|
||||
: '/api/files/' + router.currentRoute.params.token + '/public'
|
||||
|
||||
axios.get(route)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user