Files
cloudron-box/dashboard/src/components/DomainDialog.vue
T

32 lines
647 B
Vue
Raw Normal View History

2025-01-28 13:55:58 +01:00
<script setup>
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
import { ref, useTemplateRef } from 'vue';
import { Dialog } from 'pankow';
const dialog = useTemplateRef('dialog');
const domain = ref('');
const provider = ref('');
defineExpose({
open(d) {
console.log(d);
d = d || {};
domain.value = d.domain;
provider.value = d.provider;
dialog.value.open();
}
});
</script>
<template>
<Dialog ref="dialog"
:title="domain ? $t('domains.domainDialog.editTitle', { domain: domain }) : $t('domains.domainDialog.addTitle')">
</Dialog>
</template>