@saltcorn/server 0.9.4-beta.1 → 0.9.4-beta.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.
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.9.4-beta.1",
3
+ "version": "0.9.4-beta.2",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.451.0",
10
- "@saltcorn/base-plugin": "0.9.4-beta.1",
11
- "@saltcorn/builder": "0.9.4-beta.1",
12
- "@saltcorn/data": "0.9.4-beta.1",
13
- "@saltcorn/admin-models": "0.9.4-beta.1",
14
- "@saltcorn/filemanager": "0.9.4-beta.1",
15
- "@saltcorn/markup": "0.9.4-beta.1",
16
- "@saltcorn/sbadmin2": "0.9.4-beta.1",
10
+ "@saltcorn/base-plugin": "0.9.4-beta.2",
11
+ "@saltcorn/builder": "0.9.4-beta.2",
12
+ "@saltcorn/data": "0.9.4-beta.2",
13
+ "@saltcorn/admin-models": "0.9.4-beta.2",
14
+ "@saltcorn/filemanager": "0.9.4-beta.2",
15
+ "@saltcorn/markup": "0.9.4-beta.2",
16
+ "@saltcorn/sbadmin2": "0.9.4-beta.2",
17
17
  "@socket.io/cluster-adapter": "^0.2.1",
18
18
  "@socket.io/sticky": "^1.0.1",
19
19
  "adm-zip": "0.5.10",
@@ -498,3 +498,7 @@ table.help-md th:nth-child(2) {
498
498
  tr[onclick] {
499
499
  cursor: pointer;
500
500
  }
501
+
502
+ .editStarRating i.fa-star {
503
+ color: unset;
504
+ }
package/routes/view.js CHANGED
@@ -71,10 +71,13 @@ router.get(
71
71
  const isModal = req.headers?.saltcornmodalrequest;
72
72
 
73
73
  const contents0 = await view.run_possibly_on_page(query, req, res);
74
- const title =
74
+ let title =
75
75
  isModal && view.attributes?.popup_title
76
76
  ? view.attributes?.popup_title
77
77
  : scan_for_page_title(contents0, view.name);
78
+ if (isModal && (title || "").includes("{{")) {
79
+ title = await view.interpolate_title_string(title, query);
80
+ }
78
81
  if (isModal && view.attributes?.popup_width)
79
82
  res.set(
80
83
  "SaltcornModalWidth",
@@ -215,6 +215,8 @@ const viewForm = async (req, tableOptions, roles, pages, values) => {
215
215
  type: "String",
216
216
  parent_field: "attributes",
217
217
  tab: "Popup settings",
218
+ sublabel:
219
+ "Some view patterns accept interpolations. Ex: <code>{{ name }}</code> or <code>{{ row ? `Edit ${row.name}` : `New person` }}</code>",
218
220
  }),
219
221
  {
220
222
  name: "popup_width",