From 88303be9cd20c236206c7c8d9b94b62a87467dd7 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 16 May 2023 18:17:47 +0800 Subject: [PATCH] add parameter to enable vote button --- src/components/ProposalListItem.vue | 31 ++++------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 6d823610..6a5c694c 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -7,6 +7,7 @@ import type { PropType } from 'vue'; defineProps({ proposals: { type: Object as PropType }, + votable: { type: Boolean, default: false } }); const format = useFormatter(); @@ -27,40 +28,16 @@ const statusMap: Record = {