mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
UI: Fix shape of response anticipated from feature-flags endpoint (#10684)
* Fix shape of response anticipated from feature-flags endpoint * Add changelog
This commit is contained in:
parent
34aeedfd24
commit
0da3cc7b2e
3 changed files with 5 additions and 4 deletions
3
changelog/10684.txt
Normal file
3
changelog/10684.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fix expected response from feature-flags endpoint
|
||||
```
|
||||
|
|
@ -89,7 +89,7 @@ export default Route.extend({
|
|||
});
|
||||
if (result.status === 200) {
|
||||
const body = await result.json();
|
||||
const flags = body.data?.feature_flags || [];
|
||||
const flags = body.feature_flags || [];
|
||||
this.featureFlagService.setFeatureFlags(flags);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@ import { setupApplicationTest } from 'ember-qunit';
|
|||
import Pretender from 'pretender';
|
||||
|
||||
const FEATURE_FLAGS_RESPONSE = {
|
||||
data: {
|
||||
feature_flags: ['VAULT_CLOUD_ADMIN_NAMESPACE'],
|
||||
},
|
||||
feature_flags: ['VAULT_CLOUD_ADMIN_NAMESPACE'],
|
||||
};
|
||||
|
||||
module('Acceptance | Enterprise | Managed namespace root', function(hooks) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue