Circuits OK

Accounts Ok
Movements OK
This commit is contained in:
Paolo Arena
2022-09-14 11:31:48 +02:00
parent 44c75768c6
commit 25a60472ab
34 changed files with 299 additions and 119 deletions

View File

@@ -22,15 +22,18 @@ export default defineComponent({
const globalStore = useGlobalStore()
const { t } = useI18n()
const filter = ref(costanti.FIND_CIRCUIT)
const filter = ref(costanti.MY_CIRCUITS)
const isfinishLoading = computed(() => globalStore.finishLoading)
function mounted() {
const filt_loaded = tools.getCookie(tools.COOK_SEARCH + tools.CIRCUIT_SEARCH, costanti.FIND_CIRCUIT, true)
console.log('filt_loaded', filt_loaded)
filter.value = filt_loaded ? filt_loaded : costanti.FIND_CIRCUIT
if (userStore.my.profile.mycircuits.length <= 0) {
filter.value = costanti.FIND_CIRCUIT
}
// const filt_loaded = tools.getCookie(tools.COOK_SEARCH + tools.CIRCUIT_SEARCH, costanti.FIND_CIRCUIT, true)
// console.log('filt_loaded', filt_loaded)
// filter.value = filt_loaded ? filt_loaded : costanti.FIND_CIRCUIT
}
watch(() => filter.value, (newval: any, oldval) => {