flamenco/web/app/src/components/TabItem.vue
Sybren A. Stüvel 819767ea1a Webapp: tweak the .editorconfig and .prettierrc files + re-format
Try to get the `.editorconfig` and `.prettierrc` files as close as possible
to the formatting that was used in Flamenco. Because these files weren't
here during most of Flamenco's development so far, having them caused quite
a few changes in the webapp files.

No functional changes intended.
2023-09-11 17:22:18 +02:00

16 lines
347 B
Vue

<script setup>
import { inject, computed, provide } from 'vue';
const props = defineProps({
title: String,
});
const selectedTitle = inject('selectedTitle');
const isVisible = computed(() => selectedTitle.value === props.title);
provide('isVisible', isVisible);
</script>
<template>
<div v-show="isVisible">
<slot />
</div>
</template>