@saltcorn/sbadmin2 0.7.3 → 0.7.4-beta.0

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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -288,6 +288,8 @@ const renderAuthLinks = (authLinks) => {
288
288
  if (authLinks.forgot) links.push(link(authLinks.forgot, "Forgot password?"));
289
289
  if (authLinks.signup)
290
290
  links.push(link(authLinks.signup, "Create an account!"));
291
+ if (authLinks.publicUser)
292
+ links.push(link(authLinks.publicUser, "Continue as public user"));
291
293
  const meth_links = (authLinks.methods || [])
292
294
  .map(({ url, icon, label }) =>
293
295
  a(
@@ -431,7 +433,7 @@ const wrap = ({
431
433
  title,
432
434
  `id="page-top" class="${bodyClass || ""}"`,
433
435
  `<div id="wrapper">
434
- ${db.is_node ? sidebar(brand, menu, currentUrl) : ""}
436
+ ${menu && menu.length > 0 ? sidebar(brand, menu, currentUrl) : ""}
435
437
 
436
438
  <div id="content-wrapper" class="d-flex flex-column">
437
439
  <div id="content">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/sbadmin2",
3
- "version": "0.7.3",
3
+ "version": "0.7.4-beta.0",
4
4
  "description": "SB Admin 2 layout plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,8 +9,8 @@
9
9
  "clean": "echo \"Error: no TypeScript support yet\""
10
10
  },
11
11
  "dependencies": {
12
- "@saltcorn/data": "0.7.3",
13
- "@saltcorn/markup": "0.7.3",
12
+ "@saltcorn/data": "0.7.4-beta.0",
13
+ "@saltcorn/markup": "0.7.4-beta.0",
14
14
  "startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8"
15
15
  },
16
16
  "author": "Tom Nielsen",