1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #3951: Minor fixes (#842)

This commit is contained in:
Sergio Betanzos 2021-02-18 18:58:37 +01:00 committed by GitHub
parent a3df79533f
commit e8a8daed5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -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 (

View File

@ -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)