This commit is contained in:
Peter Papp
2021-04-07 07:48:07 +02:00
parent 87b3625b27
commit 30ae2c0a54
13 changed files with 163 additions and 114 deletions

View File

@@ -12,10 +12,10 @@ const Helpers = {
let enableEmptyInput = ['mimetypes_blacklist', 'google_analytics', 'upload_limit']
if (value === '' && !enableEmptyInput.includes(name)) return
if (value === '' || value === ' ' && !enableEmptyInput.includes(name)) return
axios.post(this.$store.getters.api + route, {name, value, _method: 'patch'})
.catch(error => {
.catch(() => {
events.$emit('alert:open', {
title: this.$t('popup_error.title'),
message: this.$t('popup_error.message'),
@@ -90,10 +90,6 @@ const Helpers = {
win.focus()
}
Vue.prototype.$createFolder = function (folderName) {
this.$store.dispatch('createFolder', folderName)
}
Vue.prototype.$uploadFiles = async function (files) {
if (files.length == 0) return