Dashboard and error handling
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user