From 6b3ff10027c1b8cd4010dc9155ce48cfdf2d7a4e Mon Sep 17 00:00:00 2001 From: adfost Date: Tue, 23 Nov 2021 09:52:14 -0800 Subject: [PATCH] Securizing bucket tags (#1249) --- .../BucketDetails/BucketSummaryPanel.tsx | 94 +++++++++++-------- 1 file changed, 57 insertions(+), 37 deletions(-) diff --git a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx index fede9adc6..a0d51727e 100644 --- a/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx +++ b/portal-ui/src/screens/Console/Buckets/BucketDetails/BucketSummaryPanel.tsx @@ -617,43 +617,63 @@ const BucketSummary = ({ - - Tags: - - {tagKeys && - tagKeys.map((tagKey: any, index: any) => { - const tag = get(tags, `${tagKey}`, ""); - if (tag !== "") { - return ( - } - onDelete={() => { - deleteTag(tagKey, tag); - }} - /> - ); - } - return null; - })} - } - clickable - size="small" - label="Add tag" - color="primary" - variant="outlined" - onClick={() => { - setTagModalOpen(true); - }} - /> - - + + + Tags: + + {tagKeys && + tagKeys.map((tagKey: any, index: any) => { + const tag = get(tags, `${tagKey}`, ""); + if (tag !== "") { + return ( + + } + onDelete={() => { + deleteTag(tagKey, tag); + }} + /> + + ); + } + return null; + })} + + } + clickable + size="small" + label="Add tag" + color="primary" + variant="outlined" + onClick={() => { + setTagModalOpen(true); + }} + /> + + + +