X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Ftrending%2Flayout.py;h=422488dd3bc7c934d07032692893e7684797d859;hp=9f246d8e73211ecb16b0841bf57520d06e1397a7;hb=808613a09844882f121b173c2b6fccde3388a0ce;hpb=d06f2c79a4bff1cb1ff92439897e792d3cb18986 diff --git a/resources/tools/dash/app/pal/trending/layout.py b/resources/tools/dash/app/pal/trending/layout.py index 9f246d8e73..422488dd3b 100644 --- a/resources/tools/dash/app/pal/trending/layout.py +++ b/resources/tools/dash/app/pal/trending/layout.py @@ -184,6 +184,7 @@ class Layout: dbc.NavItem( dbc.NavLink( "Continuous Performance Trending", + disabled=True, external_link=True, href="#" ) @@ -256,30 +257,30 @@ class Layout: class_name="g-0", children=[ dbc.Label("Physical Test Bed Topology, NIC and Driver"), - dcc.Dropdown( + dbc.Select( id="dd-ctrl-phy", + className="p-2", placeholder="Select a Physical Test Bed Topology...", - multi=False, - clearable=False, options=[ {"label": k, "value": k} for k in self.spec_tbs.keys() ], + size="sm", ), dbc.Label("Area"), - dcc.Dropdown( + dbc.Select( id="dd-ctrl-area", + className="p-2", placeholder="Select an Area...", disabled=True, - multi=False, - clearable=False, + size="sm", ), dbc.Label("Test"), - dcc.Dropdown( + dbc.Select( id="dd-ctrl-test", + className="p-2", placeholder="Select a Test...", disabled=True, - multi=False, - clearable=False, + size="sm", ), dbc.Row( id="row-ctrl-core", @@ -398,14 +399,14 @@ class Layout: dbc.ButtonGroup( [ dbc.Button( - id="btn-sel-remove", - children="Remove Selected", + id="btn-sel-remove-all", + children="Remove All", color="secondary", disabled=False ), dbc.Button( - id="btn-sel-remove-all", - children="Remove All", + id="btn-sel-remove", + children="Remove Selected", color="secondary", disabled=False ), @@ -744,8 +745,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] + ) ] ) ]