Skip to content

Commit

Permalink
Backport of UI: [VAULT-18040] List all features in license info into …
Browse files Browse the repository at this point in the history
…release/1.14.x (#23005)

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
  • Loading branch information
1 parent 56debfa commit 2757272
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/22855.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: don't exclude features present on license
```
7 changes: 6 additions & 1 deletion ui/app/components/license-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2757272

Please sign in to comment.