feat: spots

This commit is contained in:
Michael 2025-07-11 15:03:59 +02:00
parent 08010fbb61
commit a4e1a3328f
20 changed files with 172 additions and 97 deletions

View file

@ -1,8 +1,9 @@
<script setup lang="ts">
import {ref} from "vue";
import {onBeforeMount, ref} from "vue";
import Archive from "@/components/content/Archive.vue";
import Blocks from "@components/content/SmartBlock.vue";
import Webstream from "@components/content/Webstream.vue";
import {useShowTypeStore} from "@stores/showType.store.ts";
const tab = ref(null)
const tabs = [
@ -19,6 +20,15 @@ const tabs = [
title: 'Webstream',
},
]
onBeforeMount(() => {
const showTypeStore = useShowTypeStore()
if(showTypeStore.currentType == 'spot') {
const webstreamIndex = tabs.findIndex(tab => tab.id == 'webstream')
tabs.splice(webstreamIndex, 1)
}
})
</script>
<template>