mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
- Restriction UI warning
- create folder restriction - fixed UI bugs
This commit is contained in:
+11
-3
@@ -117,7 +117,12 @@ const actions = {
|
||||
dispatch('getAppData')
|
||||
|
||||
})
|
||||
.catch(() => Vue.prototype.$isSomethingWrong())
|
||||
.catch(error => {
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.message,
|
||||
message: i18n.t('popup_error.message')
|
||||
})
|
||||
})
|
||||
},
|
||||
renameItem: ({commit, getters, dispatch}, data) => {
|
||||
|
||||
@@ -222,13 +227,16 @@ const actions = {
|
||||
'413': {
|
||||
title: i18n.t('popup_paylod_error.title'),
|
||||
message: i18n.t('popup_paylod_error.message')
|
||||
}
|
||||
},
|
||||
'401': {
|
||||
title: error.response.data.message,
|
||||
},
|
||||
}
|
||||
|
||||
events.$emit('alert:open', {
|
||||
emoji: '😬😬😬',
|
||||
title: messages[error.response.status]['title'],
|
||||
message: messages[error.response.status]['message']
|
||||
message: messages[error.response.status]['message'] || null
|
||||
})
|
||||
|
||||
commit('PROCESSING_FILE', false)
|
||||
|
||||
+1
@@ -143,6 +143,7 @@ const mutations = {
|
||||
}
|
||||
|
||||
const getters = {
|
||||
isLimitedUser: state => state.user && state.user.data.relationships.failedPayments && state.user.data.relationships.failedPayments.data.length === 3,
|
||||
permission: state => state.permission,
|
||||
user: state => state.user,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user