From f58fca2048d58aeb233f064e617eabf1b9b84b21 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Wed, 8 Jun 2022 17:07:51 +0200 Subject: [PATCH] ui: upgrade ember composable helper (#13394) Upgrade ember-composable-helpers to version 5.x. This version contains the pick-helper which makes composition in the template layer easier with Octane. {{!-- this is usually hard to do with Octane --}} Version 5.x also fixes a regression with sort-by that according to @johncowen was the reason why the version was pinned to 4.0.0 at the moment. Version 5 of ember-composable-helpers removes the contains-helper in favor of includes which I changed all occurences for. --- .changelog/13394.txt | 3 +++ .../consul/lock-session/notifications/README.mdx | 2 +- .../components/consul/nspace/search-bar/index.hbs | 2 +- .../consul/partition/search-bar/index.hbs | 2 +- .../consul/auth-method/search-bar/index.hbs | 10 +++++----- .../consul/health-check/search-bar/index.hbs | 8 ++++---- .../consul/intention/permission/form/index.hbs | 2 +- .../consul/intention/search-bar/index.hbs | 4 ++-- .../app/components/consul/kv/search-bar/index.hbs | 4 ++-- .../components/consul/node/search-bar/index.hbs | 4 ++-- .../components/consul/policy/search-bar/index.hbs | 6 +++--- .../components/consul/role/search-bar/index.hbs | 2 +- .../app/components/consul/server/card/index.hbs | 4 ++-- .../consul/service-instance/search-bar/index.hbs | 6 +++--- .../components/consul/service/search-bar/index.hbs | 14 +++++++------- .../components/consul/token/search-bar/index.hbs | 4 ++-- .../consul/upstream-instance/search-bar/index.hbs | 2 +- .../consul/upstream/search-bar/index.hbs | 4 ++-- .../app/components/disclosure-menu/menu/index.hbs | 2 +- .../app/components/form-group/element/index.hbs | 2 +- .../consul-ui/app/components/policy-form/index.hbs | 2 +- .../consul-ui/app/styles/base/icons/README.mdx | 2 +- .../consul-ui/app/templates/application.hbs | 2 +- .../app/templates/dc/services/show/topology.hbs | 2 +- ui/packages/consul-ui/package.json | 2 +- ui/yarn.lock | 14 +++++++------- 26 files changed, 57 insertions(+), 54 deletions(-) create mode 100644 .changelog/13394.txt diff --git a/.changelog/13394.txt b/.changelog/13394.txt new file mode 100644 index 000000000..c00759f44 --- /dev/null +++ b/.changelog/13394.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: upgrade ember-composable-helpers to v5.x +``` diff --git a/ui/packages/consul-lock-sessions/app/components/consul/lock-session/notifications/README.mdx b/ui/packages/consul-lock-sessions/app/components/consul/lock-session/notifications/README.mdx index 6d90f0fff..07ee84b1c 100644 --- a/ui/packages/consul-lock-sessions/app/components/consul/lock-session/notifications/README.mdx +++ b/ui/packages/consul-lock-sessions/app/components/consul/lock-session/notifications/README.mdx @@ -30,7 +30,7 @@ A Notification component specifically for LockSessions. {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} - {{/each}} diff --git a/ui/packages/consul-partitions/app/components/consul/partition/search-bar/index.hbs b/ui/packages/consul-partitions/app/components/consul/partition/search-bar/index.hbs index 1d2999c9b..b0f15ec30 100644 --- a/ui/packages/consul-partitions/app/components/consul/partition/search-bar/index.hbs +++ b/ui/packages/consul-partitions/app/components/consul/partition/search-bar/index.hbs @@ -55,7 +55,7 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} - {{/each}} diff --git a/ui/packages/consul-ui/app/components/consul/auth-method/search-bar/index.hbs b/ui/packages/consul-ui/app/components/consul/auth-method/search-bar/index.hbs index ec8b98336..be122a1d8 100644 --- a/ui/packages/consul-ui/app/components/consul/auth-method/search-bar/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/auth-method/search-bar/index.hbs @@ -55,7 +55,7 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} - {{/each}} @@ -78,10 +78,10 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} - - + + {{#if (env 'CONSUL_SSO_ENABLED')}} - + {{/if}} {{/let}} @@ -100,7 +100,7 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (array "local" "global") as |option|}} - {{/each}} diff --git a/ui/packages/consul-ui/app/components/consul/health-check/search-bar/index.hbs b/ui/packages/consul-ui/app/components/consul/health-check/search-bar/index.hbs index 78392f665..9c784527a 100644 --- a/ui/packages/consul-ui/app/components/consul/health-check/search-bar/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/health-check/search-bar/index.hbs @@ -55,7 +55,7 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} - {{/each}} @@ -80,7 +80,7 @@ as |key value|}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (array "passing" "warning" "critical" "empty") as |state|}} -