
The blocklist is now shown in the job details, in its own tab. The list is only fetched when the tab is visible, and doesn't get dynamically updated yet.
16 lines
346 B
Vue
16 lines
346 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>
|