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-09-16 17:39:28 +02: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-08-26 03:32:50 +02:00
|
|
|
<q-list>
|
|
|
|
|
<span v-for="(circuit, index) in listcircuitsfiltered" :key="index" class="q-my-sm" clickable>
|
|
|
|
|
<CMyCircuit
|
|
|
|
|
:mycircuit="circuit"
|
|
|
|
|
:visu="modelValue">
|
|
|
|
|
</CMyCircuit>
|
|
|
|
|
</span>
|
|
|
|
|
</q-list>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<q-list class="width-container">
|
|
|
|
|
<span class="q-my-sm" clickable>
|
|
|
|
|
<CMyCircuit
|
|
|
|
|
:mycircuit="mycircuit"
|
|
|
|
|
:visu="visu">
|
|
|
|
|
</CMyCircuit>
|
|
|
|
|
</span>
|
|
|
|
|
</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>
|
|
|
|
|
|