Skip to content

Commit 724d2a8

Browse files
kallesprdharingsrob
authored andcommitted
remove compiled js/css
1 parent 39c1259 commit 724d2a8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

frontend/js/components/VSelect.vue

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:value="value"
1212
:options="currentOptions"
1313
:searchable="searchable"
14+
:selectable="selectable"
1415
:clearSearchOnSelect="clearSearchOnSelect"
1516
:label="optionsLabel"
1617
:taggable="taggable"
@@ -44,7 +45,6 @@
4445
import extendedVSelect from '@/components/VSelect/ExtendedVSelect.vue'
4546
// check full options of the vueSelect here : http://sagalbot.github.io/vue-select/
4647
// import vSelect from 'vue-select' // check full options of the vueSelect here : http://sagalbot.github.io/vue-select/
47-
4848
export default {
4949
name: 'A17VueSelect',
5050
mixins: [randKeyMixin, InputframeMixin, FormStoreMixin, AttributesMixin],
@@ -81,6 +81,10 @@
8181
type: Boolean,
8282
default: false
8383
},
84+
selectable: {
85+
type: Function,
86+
default: option => option.selectable ?? true,
87+
},
8488
clearSearchOnSelect: {
8589
type: Boolean,
8690
default: true
@@ -150,7 +154,6 @@
150154
if (typeof this.value[0] === 'object') {
151155
return this.value.map(e => e.value)
152156
}
153-
154157
return this.value.join(',')
155158
}
156159
}
@@ -199,12 +202,10 @@
199202
// see formStore mixin
200203
this.value = value
201204
this.saveIntoStore()
202-
203205
this.$emit('change', value)
204206
},
205207
getOptions: debounce(function (search, loading) {
206208
if (!this.isAjax()) return true
207-
208209
loading(true)
209210
this.$http.get(this.ajaxUrl, { params: { q: search } }).then((resp) => {
210211
if (resp.data.items && resp.data.items.length) {
@@ -226,4 +227,4 @@
226227
}, 500)
227228
}
228229
}
229-
</script>
230+
</script>

0 commit comments

Comments
 (0)