Click per mandare un messaggio al Destinatario dei RIS, se non è entrato ancora in RIS ITALIA.

This commit is contained in:
Surya Paolo
2023-11-19 23:40:50 +01:00
parent 0642375eaf
commit 446b555b46
20 changed files with 335 additions and 18 deletions

View File

@@ -9,6 +9,7 @@ import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { CMyUserOnlyView } from '@/components/CMyUserOnlyView'
import { CMyGroupOnlyView } from '@/components/CMyGroupOnlyView'
import { CCheckCircuitsEnabled } from '@/components/CCheckCircuitsEnabled'
import { costanti } from '@costanti'
export default defineComponent({
@@ -48,8 +49,13 @@ export default defineComponent({
required: false,
default: null,
},
sendRIS: {
type: Number,
required: false,
default: 1,
},
},
components: { CSaldo, CMyUserOnlyView, CMyGroupOnlyView },
components: { CSaldo, CMyUserOnlyView, CMyGroupOnlyView, CCheckCircuitsEnabled },
setup(props, { emit }) {
const $q = useQuasar()
@@ -257,7 +263,9 @@ export default defineComponent({
if (props.circuitname) {
circuitsel.value = props.circuitname
} else {
circuitsel.value = tools.getCookie(tools.CIRCUIT_USE, bothcircuits.value[0])
const circcookie = tools.getCookie(tools.CIRCUIT_USE, bothcircuits.value[0])
if (circcookie && bothcircuits.value.findIndex((circ: ICircuit) => circ.name === circcookie) >= 0)
circuitsel.value = circcookie
}
if (bothcircuits.value && bothcircuits.value.find((name: any) => name !== circuitsel.value)) {
circuitsel.value = bothcircuits.value[0]
@@ -265,6 +273,10 @@ export default defineComponent({
qty.value = props.qtydefault
if (props.sendRIS) {
qty.value = props.sendRIS
}
await aggiorna()
showpage.value = true