Provide SubscriptionRequiredDialog globally via provide/inject

This commit is contained in:
Johannes Zellner
2025-04-28 15:18:47 +02:00
parent be16f93ba0
commit 47477808e4
3 changed files with 14 additions and 10 deletions
@@ -1,5 +1,10 @@
<script setup>
// Use this in any component after injecting from the Index.vue provided Dialog
//
// const subscriptionRequiredDialog = inject('subscriptionRequiredDialog');
// subscriptionRequiredDialog.value.open();
import { useTemplateRef } from 'vue';
import { Dialog, Button } from 'pankow';