mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
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>
This commit is contained in:
committed by
GitHub
parent
56debfa716
commit
275727272b
3
changelog/22855.txt
Normal file
3
changelog/22855.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: don't exclude features present on license
|
||||||
|
```
|
||||||
@@ -28,7 +28,12 @@ import { allFeatures } from 'vault/helpers/all-features';
|
|||||||
*/
|
*/
|
||||||
export default class LicenseInfoComponent extends Component {
|
export default class LicenseInfoComponent extends Component {
|
||||||
get featuresInfo() {
|
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);
|
const active = this.args.features.includes(feature);
|
||||||
if (active && feature === 'Performance Standby') {
|
if (active && feature === 'Performance Standby') {
|
||||||
const count = this.args.performanceStandbyCount;
|
const count = this.args.performanceStandbyCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user