use filtering TableView for domains
This commit is contained in:
32
dashboard/src/components/DomainDialog.vue
Normal file
32
dashboard/src/components/DomainDialog.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user