diff --git a/.changelog/10121.txt b/.changelog/10121.txt new file mode 100644 index 0000000000..be1e3250f8 --- /dev/null +++ b/.changelog/10121.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Add conditionals to lock sessions tab +``` diff --git a/ui/packages/consul-ui/app/components/consul/lock-session/list/index.hbs b/ui/packages/consul-ui/app/components/consul/lock-session/list/index.hbs index d0dcd35acf..4957468e56 100644 --- a/ui/packages/consul-ui/app/components/consul/lock-session/list/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/lock-session/list/index.hbs @@ -1,9 +1,20 @@ {{#if (gt items.length 0)}} + {{#if item.Name}} {{item.Name}} + {{else}} + + {{item.ID}} + + + {{/if}} + {{#if item.Name}}
{{item.ID}}
+ {{/if}}
@@ -27,7 +39,11 @@ TTL
+ {{#if (eq item.TTL "")}} +
-
+ {{else}}
{{item.TTL}}
+ {{/if}}
diff --git a/ui/packages/consul-ui/app/styles/components/composite-row.scss b/ui/packages/consul-ui/app/styles/components/composite-row.scss index 40cf5f0362..c971cd2404 100644 --- a/ui/packages/consul-ui/app/styles/components/composite-row.scss +++ b/ui/packages/consul-ui/app/styles/components/composite-row.scss @@ -57,7 +57,6 @@ margin-left: 4px; } %composite-row-detail .copy-button { - margin-right: 4px; margin-top: 2px; } %composite-row .copy-button button {