Dashboard and error handling

This commit is contained in:
2025-07-15 13:22:11 +02:00
parent 5ac4c987d3
commit 6a5149fd4c
27 changed files with 572 additions and 204 deletions

View File

@ -108,10 +108,14 @@ function submitCreateSecret() {
if (createSecretForm.value?.checkValidity()) {
console.log('SelectedClients: ', selectedClients.value)
const secretGroup = props.group ?? null
let secretClients = []
if (Array.isArray(selectedClients.value)) {
secretClients = [...selectedClients.value]
}
const secretCreate: SecretCreate = {
value: secretValue.value,
name: secretName.value,
clients: [...selectedClients.value],
clients: secretClients,
client_distinguisher: 'id',
group: secretGroup,
}