mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
v0.1 Add enable empty input in uploadText method
This commit is contained in:
4
resources/js/helpers.js
vendored
4
resources/js/helpers.js
vendored
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user