From 3d0c40eaac33dc2b048b704f0ed1724b9ba4ab9c Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Fri, 4 Nov 2022 22:12:56 +0800 Subject: [PATCH] feat: added name filter for domains list #41 --- frontend/src/views/domain/DomainList.vue | 10 +++++++--- server/api/domain.go | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/domain/DomainList.vue b/frontend/src/views/domain/DomainList.vue index 4e59b35f..d4e8d62f 100644 --- a/frontend/src/views/domain/DomainList.vue +++ b/frontend/src/views/domain/DomainList.vue @@ -9,12 +9,17 @@ const {$gettext, interpolate} = useGettext() import domain from '@/api/domain' import {Badge, message} from 'ant-design-vue' import {h, ref} from 'vue' +import {input} from '@/components/StdDataEntry' const columns = [{ title: () => $gettext('Name'), dataIndex: 'name', sorter: true, - pithy: true + pithy: true, + edit: { + type: input + }, + search: true }, { title: () => $gettext('Status'), dataIndex: 'enabled', @@ -40,7 +45,7 @@ const columns = [{ pithy: true }, { title: () => $gettext('Action'), - dataIndex: 'action', + dataIndex: 'action' }] const table = ref(null) @@ -85,7 +90,6 @@ function destroy(site_name: any) {