From 234c9ff7721ec3a45edc49e150caeff85385a7e8 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Tue, 12 Sep 2023 12:48:06 -0400 Subject: [PATCH] Backport of UI: [VAULT-18040] List all features in license info into release/1.14.x (#23005) Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com> --- changelog/22855.txt | 3 +++ ui/app/components/license-info.js | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 changelog/22855.txt diff --git a/changelog/22855.txt b/changelog/22855.txt new file mode 100644 index 000000000..a911e2112 --- /dev/null +++ b/changelog/22855.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: don't exclude features present on license +``` \ No newline at end of file diff --git a/ui/app/components/license-info.js b/ui/app/components/license-info.js index d1bca6543..5776e68b5 100644 --- a/ui/app/components/license-info.js +++ b/ui/app/components/license-info.js @@ -28,7 +28,12 @@ import { allFeatures } from 'vault/helpers/all-features'; */ export default class LicenseInfoComponent extends Component { get featuresInfo() { - return allFeatures().map((feature) => { + const notIncludedInFeaturesList = this.args.features.filter( + (feature) => !allFeatures().includes(feature) + ); + const features = [...allFeatures(), ...notIncludedInFeaturesList]; + + return features.map((feature) => { const active = this.args.features.includes(feature); if (active && feature === 'Performance Standby') { const count = this.args.performanceStandbyCount;