Secret sync modal language and link change (#25849)

* change link and language on opt-in modal

* use inline link

* move to finally in case of failure

* change to Secrets sync

* amend title

* one last
This commit is contained in:
Angel Garbarino
2024-03-08 10:35:50 -07:00
committed by GitHub
parent dbca3a00fb
commit 79c8ec4f1f
2 changed files with 11 additions and 7 deletions

View File

@@ -79,10 +79,11 @@ export default class SyncSecretsDestinationsPageComponent extends Component<Args
yield this.store
.adapterFor('application')
.ajax('/v1/sys/activation-flags/secrets-sync/activate', 'POST');
this.showActivateSecretsSyncModal = false;
this.router.transitionTo('vault.cluster.sync.secrets.overview');
} catch (error) {
this.flashMessages.danger(`Error enabling feature \n ${errorMessage(error)}`);
} finally {
this.showActivateSecretsSyncModal = false;
}
}
}