mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
v1.5-alpha.1
This commit is contained in:
7
resources/js/store/modules/userAuth.js
vendored
7
resources/js/store/modules/userAuth.js
vendored
@@ -80,9 +80,6 @@ const mutations = {
|
||||
SET_PERMISSION(state, role) {
|
||||
state.permission = role
|
||||
},
|
||||
SET_AUTHORIZED(state, data) {
|
||||
state.authorized = data
|
||||
},
|
||||
DESTROY_DATA(state) {
|
||||
state.authorized = false
|
||||
state.app = undefined
|
||||
@@ -101,16 +98,12 @@ const mutations = {
|
||||
state.app.user.avatar = avatar
|
||||
},
|
||||
UPDATE_RECENT_UPLOAD(state, file) {
|
||||
|
||||
// Remove last file from altest uploads
|
||||
if (state.app.latest_uploads.length === 7) state.app.latest_uploads.pop()
|
||||
|
||||
// Add new file to latest uploads
|
||||
state.app.latest_uploads.unshift(file)
|
||||
},
|
||||
REMOVE_ITEM_FROM_RECENT_UPLOAD(state, unique_id) {
|
||||
state.app.latest_uploads = state.app.latest_uploads.filter(file => file.unique_id !== unique_id)
|
||||
},
|
||||
REMOVE_ITEM_FROM_FAVOURITES(state, item) {
|
||||
state.app.favourites = state.app.favourites.filter(folder => folder.unique_id !== item.unique_id)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user