-Quando insersci l'username telegram sul Profilo, devo togliergli la chiocciola !
- anche nella ricerca User
This commit is contained in:
@@ -208,6 +208,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
notAllowAtChar: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
path: {
|
||||
type: String,
|
||||
required: false,
|
||||
@@ -377,10 +382,10 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changevalRec(newval: any) {
|
||||
// console.log('changevalRec', newval)
|
||||
console.log('changevalRec', newval)
|
||||
// if (!props.insertMode || (props.insertMode && col.value.fieldtype !== costanti.FieldType.multioption)) {
|
||||
if (col.value && col.value.allowchar === costanti.ALLOWCHAR_CODE) {
|
||||
myvalue.value = tools.removespaces_slash(newval)
|
||||
newval = tools.removespaces_slash(newval)
|
||||
}
|
||||
// console.log('popuppedit: changevalRec', newval, 'COLName', col.value.name)
|
||||
|
||||
@@ -390,6 +395,10 @@ export default defineComponent({
|
||||
// console.log('image', newval)
|
||||
}
|
||||
|
||||
if (props.notAllowAtChar) {
|
||||
newval = tools.rimuoviAtPrimoCarattere(newval)
|
||||
}
|
||||
|
||||
myrow.value[col.value.name] = newval
|
||||
|
||||
|
||||
@@ -529,6 +538,12 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
if (props.notAllowAtChar) {
|
||||
newVal = tools.rimuoviAtPrimoCarattere(newVal)
|
||||
myvalue.value = newVal
|
||||
}
|
||||
|
||||
console.log('newVal', newVal)
|
||||
|
||||
if (isFieldDb()) {
|
||||
savefield(newVal, valinitial, $q)
|
||||
|
||||
Reference in New Issue
Block a user