2025-04-25 15:19:34 +02:00
|
|
|
<script setup>
|
|
|
|
|
|
2025-04-28 15:18:47 +02:00
|
|
|
// Use this in any component after injecting from the Index.vue provided Dialog
|
|
|
|
|
//
|
|
|
|
|
// const subscriptionRequiredDialog = inject('subscriptionRequiredDialog');
|
|
|
|
|
// subscriptionRequiredDialog.value.open();
|
|
|
|
|
|
2025-07-09 16:08:47 +02:00
|
|
|
import { useTemplateRef } from 'vue';
|
2025-07-10 11:55:11 +02:00
|
|
|
import { Dialog, Button } from '@cloudron/pankow';
|
2025-04-25 15:19:34 +02:00
|
|
|
|
|
|
|
|
const dialog = useTemplateRef('dialog');
|
2025-07-09 16:08:47 +02:00
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
|
dialog.value.close();
|
|
|
|
|
}
|
2025-04-25 15:19:34 +02:00
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
|
async open() {
|
2025-05-12 22:58:50 +02:00
|
|
|
dialog.value.open();
|
|
|
|
|
}
|
2025-05-12 15:54:06 +02:00
|
|
|
});
|
|
|
|
|
|
2025-04-25 15:19:34 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<Dialog ref="dialog" title="Subscription required" :show-x="true">
|
2025-07-09 16:08:47 +02:00
|
|
|
<div style="margin-bottom: 30px; margin-top: 10px;">To use this feature a Cloudron subscription needs to be set up.</div>
|
|
|
|
|
<Button href="/#/cloudron-account" @click="close()">Set up</Button>
|
2025-04-25 15:19:34 +02:00
|
|
|
</Dialog>
|
|
|
|
|
</template>
|