From f32479a00fd731f8fa79266a1c8bae41c79f9b0d Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 19 Apr 2022 07:43:31 +0200 Subject: feat(uti): Add c&p to offcanvas Change-Id: I235f78d1e7fab94114958dee8aba004bee6b6b03 Signed-off-by: Tibor Frank --- resources/tools/dash/app/pal/trending/layout.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'resources/tools/dash') diff --git a/resources/tools/dash/app/pal/trending/layout.py b/resources/tools/dash/app/pal/trending/layout.py index 9f246d8e73..8d06ada49d 100644 --- a/resources/tools/dash/app/pal/trending/layout.py +++ b/resources/tools/dash/app/pal/trending/layout.py @@ -744,8 +744,18 @@ class Layout: metadata = [ dbc.Card( children=[ - dbc.CardHeader(title), - dbc.CardBody(children=[txt]) + dbc.CardHeader(children=[ + dcc.Clipboard( + target_id="tput-lat-metadata", + title="Copy", + style={"display": "inline-block"} + ), + title + ]), + dbc.CardBody( + id="tput-lat-metadata", + children=[txt] + ) ] ) ] -- cgit 1.2.3-korg