waibu-bootstrap 2.9.1 → 2.9.2

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.
@@ -10,7 +10,7 @@ async function drawer () {
10
10
  }
11
11
 
12
12
  build = async () => {
13
- const { isString, omit, trim } = this.app.lib._
13
+ const { isString, omit, trim, get } = this.app.lib._
14
14
  const { groupAttrs } = this.app.waibuMpa
15
15
  const { $, req, locals } = this.component
16
16
  const { routePath } = this.app.waibu
@@ -23,7 +23,7 @@ async function drawer () {
23
23
  if (this.params.attr.scroll) this.params.attr.dataBsScroll = 'true'
24
24
  if (this.params.attr.noDismiss) this.params.attr.dataBsBackdrop = 'static'
25
25
  const buttons = []
26
- if (locals._meta.isAdmin) buttons.push(await this.component.buildTag({ tag: 'btn', attr: { href: routePath('waibuAdmin:/'), icon: 'lock', text: 'color:danger', tooltip: req.t('adminArea') } }))
26
+ if (get(locals, '_meta.user.isAdmin')) buttons.push(await this.component.buildTag({ tag: 'btn', attr: { href: routePath('waibuAdmin:/'), icon: 'lock', text: 'color:danger', tooltip: req.t('adminArea') } }))
27
27
  const html = []
28
28
  $(`<div>${this.params.html}</div>`).children().each(function () {
29
29
  if (this.name === 'drawer-toolbar') buttons.push(trim($(this).prop('innerHTML')))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-05-22
4
+
5
+ - [2.9.2] Bug fix in ```drawer``` widget
6
+
3
7
  ## 2026-05-16
4
8
 
5
9
  - [2.9.1] Bug fix in ```form-select-ext``` widget