UI: [VAULT-19693] Only make vault configuration call when in root namespace (#23394)

This commit is contained in:
Kianna 2023-10-03 09:12:50 -07:00 committed by GitHub
parent c2952e3f44
commit ed76e17766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,8 @@ export default class VaultClusterDashboardRoute extends Route.extend(ClusterRout
async getVaultConfiguration() {
try {
if (!this.namespace.inRootNamespace) return null;
const adapter = this.store.adapterFor('application');
const configState = await adapter.ajax('/v1/sys/config/state/sanitized', 'GET');
return configState.data;