mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-09-23 00:30:43 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a71389aa29 |
@@ -481,21 +481,24 @@ export const Settings = () => {
|
||||
};
|
||||
|
||||
const createAccountToSave = (values: FormAccount): Account => {
|
||||
return {
|
||||
let accountToSave = {
|
||||
id: formAccount.id,
|
||||
settings: {
|
||||
peer_login_expiration: expiresInToSeconds(
|
||||
values.peer_login_expiration_formatted
|
||||
values.peer_login_expiration_formatted
|
||||
),
|
||||
peer_login_expiration_enabled: values.peer_login_expiration_enabled,
|
||||
jwt_groups_enabled: jwtGroupsEnabled,
|
||||
jwt_groups_claim_name: jwtGroupsClaimName,
|
||||
groups_propagation_enabled: groupsPropagationEnabled,
|
||||
extra: {
|
||||
peer_approval_enabled: values.peer_approval_enabled
|
||||
}
|
||||
},
|
||||
} as Account;
|
||||
if (isNetBirdHosted() || isLocalDev()) {
|
||||
accountToSave.settings.extra = {
|
||||
peer_approval_enabled: values.peer_approval_enabled
|
||||
}
|
||||
}
|
||||
return accountToSave;
|
||||
};
|
||||
|
||||
const confirmSave = (newValues: FormAccount) => {
|
||||
|
||||
Reference in new issue
Block a user