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.
16 lines
347 B
Vue
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>
|