sumba 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bajo/config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<c:sidebar background="color:primary-subtle" mini border="side:end" auto-fill expanded>
|
|
2
|
-
<c:app-launcher-trigger x-data @click="wbs.appLauncher()" border="side:bottom"/>
|
|
2
|
+
<c:app-launcher-trigger x-data @click="wbs.appLauncher()" border="side:bottom" img-style="width:100%;height:100%" />
|
|
3
3
|
</c:sidebar>
|
|
@@ -15,14 +15,16 @@ const profile = {
|
|
|
15
15
|
const opts = { req, setField: 'profile', setFile: 'main.png' }
|
|
16
16
|
await attachmentCopyUploaded('SumbaUser', req.user.id, opts)
|
|
17
17
|
} else {
|
|
18
|
-
|
|
18
|
+
const resp = await recordUpdate({ req, model: 'SumbaUser', id: req.user.id, body: form, options: { noFlash: true, hidden: [] } })
|
|
19
|
+
form = resp.data
|
|
19
20
|
req.flash('notify', req.t('Your profile is successfully updated'))
|
|
20
21
|
}
|
|
21
22
|
} catch (err) {
|
|
23
|
+
console.log(err)
|
|
22
24
|
error = err
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
|
-
form.token = await hash(form.token)
|
|
27
|
+
if (form.token) form.token = await hash(form.token)
|
|
26
28
|
return reply.view('sumba.template:/my-stuff/profile/edit.html', { form, error })
|
|
27
29
|
}
|
|
28
30
|
}
|