Create secrets
https://redmine.teklia.com/issues/10664
Requires enterprise#59, #1565 (closed)
A Create button at the top-right corner of the secrets list view opens a new modal. This modal shows two fields:
- Name for the name of the new secret. The API error when a secret with that name already exists must be handled and show an error here as help text.
-
Content for the content of the new secret, as a
<textarea />with a monospace font.
The modal has a Create button to create the secret. When clicked, the modal enters a loading state and everything is read-only, and a new useSecretStore().create action is called. If the API request was successful, it closes and calls list on the secret store to reload the page.