mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 09:40:39 +00:00
Merge remote-tracking branch 'origin/master' into oasis
# Conflicts: # .php_cs.cache # public/mix-manifest.json # resources/js/components/FilesView/FilePreviewMedia.vue # resources/js/components/Sidebar/SidebarNavigation.vue # resources/js/helpers.js
This commit is contained in:
Vendored
+2
-4
@@ -52,11 +52,9 @@ const Helpers = {
|
||||
}
|
||||
}, 300)
|
||||
|
||||
Vue.prototype.$updateText = debounce(function (route, name, value) {
|
||||
Vue.prototype.$updateText = debounce(function (route, name, value, allowEmpty = false) {
|
||||
|
||||
let enableEmptyInput = ['mimetypes_blacklist', 'google_analytics', 'upload_limit', 'description']
|
||||
|
||||
if (value === '' || value === ' ' && !enableEmptyInput.includes(name)) return
|
||||
if ((value === '' || value === ' ') && !allowEmpty) return
|
||||
|
||||
axios.post(this.$store.getters.api + route, {name, value, _method: 'patch'})
|
||||
.catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user