mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
a3df79533f
commit
e8a8daed5a
@ -79,12 +79,10 @@ const Settings = () => {
|
||||
|
||||
const values = Object.entries(settings)
|
||||
.map(([key, value]) => `\n ${String(key).toUpperCase()} = "${value}"`)
|
||||
.join(',')
|
||||
|
||||
console.log({values})
|
||||
|
||||
updateUser({
|
||||
template: `FIREEDGE = [\n SCHEME = "${scheme}",\n LANG = "${lang}" ]\n`
|
||||
}).then(() => context.changeLang(lang))
|
||||
updateUser({ template: `FIREEDGE = [${values}]\n` })
|
||||
.then(() => context.changeLang(settings.lang))
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -15,7 +15,7 @@ import {
|
||||
logout as logoutRequest
|
||||
} from 'client/actions/user'
|
||||
import { setGroups } from 'client/actions/pool'
|
||||
import { updateScheme, enqueueError, enqueueSuccess } from 'client/actions/general'
|
||||
import { updateScheme, enqueueError, enqueueSuccess, closeSnackbar } from 'client/actions/general'
|
||||
|
||||
const useAuth = () => {
|
||||
const {
|
||||
@ -46,6 +46,7 @@ const useAuth = () => {
|
||||
.then(data => {
|
||||
const { id, token } = data
|
||||
dispatch(successAuth())
|
||||
dispatch(closeSnackbar())
|
||||
|
||||
if (token) {
|
||||
storage(JWT_NAME, token, remember)
|
||||
|
Loading…
x
Reference in New Issue
Block a user