v0.1 Add enable empty input in uploadText method

This commit is contained in:
Miloš Holba
2020-09-15 13:20:39 +02:00
committed by Peter Papp
parent de62ab535c
commit d5f3599b9e
2 changed files with 23 additions and 2 deletions

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 => {