feat: complete admin panel and backend admin api migration
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<!--
|
||||
Ported from legacy henza_admin/src/views/newsletters/newsletters.vue.
|
||||
The delete action is COMMENTED OUT in legacy and stays absent.
|
||||
-->
|
||||
<a-card title="لیست خبرنامه">
|
||||
<XTable ref="newsletter" :model="model">
|
||||
<template #actions="{ record }">
|
||||
<span class="muted">{{ record.email ?? '-' }}</span>
|
||||
</template>
|
||||
</XTable>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import XTable from '../../components/x-table/XTable.vue';
|
||||
import { buildNewsletterModel } from './newsletter';
|
||||
|
||||
const model = buildNewsletterModel();
|
||||
const newsletter = ref<{ fetch: () => Promise<void> } | null>(null);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.muted { color: #888; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user