2022-08-26 03:32:50 +02:00
|
|
|
<template>
|
|
|
|
|
<div v-if="tools.isUserOk()">
|
2022-09-16 17:39:28 +02:00
|
|
|
<div v-if="finder && showfinder" class="q-gutter-sm q-pa-sm q-pb-sm">
|
2022-08-26 03:32:50 +02:00
|
|
|
<q-btn-toggle
|
|
|
|
|
:model-value="modelValue"
|
|
|
|
|
@update:model-value="updateValue"
|
|
|
|
|
class="my-custom-toggle"
|
|
|
|
|
no-caps
|
|
|
|
|
rounded
|
|
|
|
|
unelevated
|
|
|
|
|
push
|
|
|
|
|
toggle-color="primary"
|
|
|
|
|
color="white"
|
|
|
|
|
text-color="primary"
|
|
|
|
|
:options="myoptions"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="finder" class="">
|
2022-12-17 14:12:04 +01:00
|
|
|
<div
|
|
|
|
|
v-if="
|
|
|
|
|
modelValue === costanti.FIND_CIRCUIT ||
|
|
|
|
|
listcircuitsfiltered.length === 0
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-26 03:32:50 +02:00
|
|
|
<slot></slot>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
2022-09-14 17:37:10 +02:00
|
|
|
<!--
|
|
|
|
|
mycircuits: {{userStore.my.profile.mycircuits}}<br><br>
|
|
|
|
|
listcircuitsfiltered: {{listcircuitsfiltered}}
|
|
|
|
|
|
|
|
|
|
<q-btn label="test" @click="userStore.my.profile.mycircuits = [...userStore.my.profile.mycircuits, {circuitname: 'prova'}]; circuitStore.listcircuits = [...circuitStore.listcircuits, {name: 'prova', path: 'prova'}]"></q-btn>
|
|
|
|
|
-->
|
2022-12-17 14:12:04 +01:00
|
|
|
|
|
|
|
|
<q-list>
|
|
|
|
|
<span
|
|
|
|
|
v-for="(circuit, index) in listcircuitsfiltered"
|
|
|
|
|
:key="index"
|
|
|
|
|
class="q-my-sm"
|
|
|
|
|
clickable
|
|
|
|
|
>
|
2023-04-12 16:29:30 +02:00
|
|
|
<CMyCircuit :mycircuit="circuit" :visu="modelValue"
|
|
|
|
|
:username="username"> </CMyCircuit>
|
2022-12-17 14:12:04 +01:00
|
|
|
</span>
|
|
|
|
|
</q-list>
|
2022-08-26 03:32:50 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<q-list class="width-container">
|
2022-12-17 14:12:04 +01:00
|
|
|
<span class="q-my-sm" clickable>
|
2023-04-12 16:29:30 +02:00
|
|
|
<CMyCircuit :mycircuit="mycircuit" :visu="visu" :username="username"> </CMyCircuit>
|
2022-12-17 14:12:04 +01:00
|
|
|
</span>
|
2022-08-26 03:32:50 +02:00
|
|
|
</q-list>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<CUserNonVerif></CUserNonVerif>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./CMyCircuits.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './CMyCircuits';
|
|
|
|
|
</style>
|
|
|
|
|
|