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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "multiSite": false,
3
3
  "waibu": {
4
- "title": "User Manager",
4
+ "title": "Sumba",
5
5
  "prefix": "site"
6
6
  },
7
7
  "waibuMpa": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Bajo Framework's Biz Suite",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- form = await recordUpdate('SumbaUser', req.user.id, form, { noFlash: true })
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
  }