From 922092b337e76374c76b02dab9fdef8bc23a1d3e Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Mon, 10 Aug 2020 18:40:50 +0200 Subject: [PATCH] Add a "clear all" button to council vote (#3382) * add clear all to council vote * add parrentheses * disabled rather than hidden * Update packages/page-council/src/Overview/Vote.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Co-authored-by: Jaco Greeff --- packages/page-council/src/Overview/Vote.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/page-council/src/Overview/Vote.tsx b/packages/page-council/src/Overview/Vote.tsx index f446817fd8..e6f535a129 100644 --- a/packages/page-council/src/Overview/Vote.tsx +++ b/packages/page-council/src/Overview/Vote.tsx @@ -109,6 +109,19 @@ function Vote ({ electionsInfo }: Props): React.ReactElement { + ('Unvote all')} + onStart={toggleVisible} + params={[]} + tx={ + api.tx.electionsPhragmen + ? 'electionsPhragmen.removeVoter' + : 'elections.removeVoter' + } + />