add select fields mode
This commit is contained in:
@@ -283,7 +283,7 @@ export default {
|
||||
IconDrag,
|
||||
IconLock
|
||||
},
|
||||
inject: ['save', 'backgroundColor', 'withPhone', 'withVerification', 'withKba', 'withPayment', 't', 'fieldsDragFieldRef', 'baseFetch'],
|
||||
inject: ['save', 'backgroundColor', 'withPhone', 'withVerification', 'withKba', 'withPayment', 't', 'fieldsDragFieldRef', 'baseFetch', 'selectedAreasRef'],
|
||||
props: {
|
||||
fields: {
|
||||
type: Array,
|
||||
@@ -610,6 +610,10 @@ export default {
|
||||
})
|
||||
})
|
||||
|
||||
field.areas?.forEach((area) => {
|
||||
this.selectedAreasRef.value.splice(this.selectedAreasRef.value.indexOf(area), 1)
|
||||
})
|
||||
|
||||
if (save) {
|
||||
this.save()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user