Linting.
This commit is contained in:
parent
c248844a24
commit
4a192b5a4b
|
@ -1,12 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { Body, Button, Divider, Heading, Input, Layout } from "@budibase/bbui"
|
||||||
Body,
|
|
||||||
Button,
|
|
||||||
Divider,
|
|
||||||
Heading,
|
|
||||||
Input,
|
|
||||||
Layout,
|
|
||||||
} from "@budibase/bbui"
|
|
||||||
import { goto } from "@roxi/routify"
|
import { goto } from "@roxi/routify"
|
||||||
import { auth } from "stores/portal"
|
import { auth } from "stores/portal"
|
||||||
import Logo from "assets/bb-emblem.svg"
|
import Logo from "assets/bb-emblem.svg"
|
||||||
|
|
|
@ -81,7 +81,7 @@ export function createAuthStore() {
|
||||||
setUser(null)
|
setUser(null)
|
||||||
},
|
},
|
||||||
updateSelf: async fields => {
|
updateSelf: async fields => {
|
||||||
const newUser = { ...get(user), ...fields }
|
const newUser = { ...get(auth).user, ...fields }
|
||||||
const response = await api.post("/api/admin/users/self", newUser)
|
const response = await api.post("/api/admin/users/self", newUser)
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
setUser(newUser)
|
setUser(newUser)
|
||||||
|
|
Loading…
Reference in New Issue