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:
Peter Papp
2021-05-06 16:06:17 +02:00
17 changed files with 482 additions and 240 deletions
+2 -4
View File
@@ -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(() => {