-Quando insersci l'username telegram sul Profilo, devo togliergli la chiocciola !

- anche nella ricerca User
This commit is contained in:
Surya Paolo
2024-02-28 17:04:34 +01:00
parent 965f32b65c
commit 8da93f3f4a
6 changed files with 72 additions and 20 deletions

View File

@@ -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)