From 0f85357a6e48ffb0d56b9d7649471aa130628b77 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 30 Nov 2020 17:19:44 +0000 Subject: [PATCH] ui: Remove unused helpers or swap for helpers in ember-string-fns (#9294) * ui: Remove unused helpers or swap for helpers in ember-string-fns * starts-with > string-starts-with --- .../consul/discovery-chain/index.hbs | 4 ++-- .../consul/intention/form/index.hbs | 2 +- ui/packages/consul-ui/app/helpers/default.js | 10 -------- .../consul-ui/app/helpers/difference.js | 9 ------- .../consul-ui/app/helpers/object-entries.js | 10 -------- .../consul-ui/app/helpers/starts-with.js | 7 ------ .../app/templates/dc/nodes/show/metadata.hbs | 2 +- .../dc/services/instance/addresses.hbs | 2 +- .../dc/services/instance/metadata.hbs | 2 +- .../tests/integration/helpers/default-test.js | 24 ------------------- .../helpers/object-entries-test.js | 17 ------------- .../integration/helpers/starts-with-test.js | 17 ------------- 12 files changed, 6 insertions(+), 100 deletions(-) delete mode 100644 ui/packages/consul-ui/app/helpers/default.js delete mode 100644 ui/packages/consul-ui/app/helpers/difference.js delete mode 100644 ui/packages/consul-ui/app/helpers/object-entries.js delete mode 100644 ui/packages/consul-ui/app/helpers/starts-with.js delete mode 100644 ui/packages/consul-ui/tests/integration/helpers/default-test.js delete mode 100644 ui/packages/consul-ui/tests/integration/helpers/object-entries-test.js delete mode 100644 ui/packages/consul-ui/tests/integration/helpers/starts-with-test.js diff --git a/ui/packages/consul-ui/app/components/consul/discovery-chain/index.hbs b/ui/packages/consul-ui/app/components/consul/discovery-chain/index.hbs index 4af01d0a47..7b6dda497f 100644 --- a/ui/packages/consul-ui/app/components/consul/discovery-chain/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/discovery-chain/index.hbs @@ -126,7 +126,7 @@ {{#each routes as |item|}} - {{#if (starts-with 'resolver:' item.NextNode) }} + {{#if (string-starts-with item.NextNode 'resolver:') }} {{#let (dom-position (concat '#' item.NextNode) '.edges') as |dest|}} {{/let}} @@ -142,7 +142,7 @@ {{#each routes as |item|}} - {{#if (starts-with 'splitter:' item.NextNode) }} + {{#if (string-starts-with item.NextNode 'splitter:') }} {{#let (dom-position (concat '#' item.NextNode) '.edges') as |dest|}} {{/let}} diff --git a/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs b/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs index bfc0aee5a7..17d92c8772 100644 --- a/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs @@ -16,7 +16,7 @@ as |api|>
{{#if item.Meta}} - + {{else}} diff --git a/ui/packages/consul-ui/app/templates/dc/services/instance/addresses.hbs b/ui/packages/consul-ui/app/templates/dc/services/instance/addresses.hbs index c147bd74a1..5c9e8417f1 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/instance/addresses.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/instance/addresses.hbs @@ -3,7 +3,7 @@ {{#if item.Service.TaggedAddresses }} Tag diff --git a/ui/packages/consul-ui/app/templates/dc/services/instance/metadata.hbs b/ui/packages/consul-ui/app/templates/dc/services/instance/metadata.hbs index 98f5ba995b..76645926ea 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/instance/metadata.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/instance/metadata.hbs @@ -17,7 +17,7 @@