v0.1 Add enable empty input in uploadText method

This commit is contained in:
Miloš Holba
2020-09-15 13:20:39 +02:00
parent 2de8bbe548
commit 80de069c7b
2 changed files with 23 additions and 4 deletions
+3 -1
View File
@@ -9,8 +9,10 @@ const Helpers = {
install(Vue) {
Vue.prototype.$updateText = debounce(function (route, name, value) {
let enableEmptyInput = ['mimetypes_blacklist' , 'google_analytics']
// if (value === '') return
if (value === '' && !enableEmptyInput.includes(name)) return
axios.post(this.$store.getters.api + route, {name, value, _method: 'patch'})
.catch(error => {