@saltcorn/mobile-app 1.4.1-beta.1 → 1.4.1-beta.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@saltcorn/mobile-app",
3
3
  "displayName": "Saltcorn mobile app",
4
- "version": "1.4.1-beta.1",
4
+ "version": "1.4.1-beta.3",
5
5
  "description": "Saltcorn mobile app for Android and iOS",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -77,7 +77,7 @@ export async function updateScPlugins(tablesJSON) {
77
77
 
78
78
  export async function updateUserDefinedTables() {
79
79
  const existingTables = await saltcorn.data.db.listUserDefinedTables();
80
- const tables = await saltcorn.data.models.Table.find();
80
+ const tables = await saltcorn.data.models.Table.find({}, { cached: true });
81
81
  for (const table of tables) {
82
82
  const sanitized = saltcorn.data.db.sqlsanitize(table.name);
83
83
  if (
@@ -74,6 +74,8 @@ const renderLoginView = async (entryPoint, versionTag, alerts = []) => {
74
74
  }
75
75
  }
76
76
 
77
+ const assets_by_role = state.assets_by_role || {};
78
+ const roleHeaders = assets_by_role[100];
77
79
  return layout.authWrap({
78
80
  title: "login",
79
81
  form: form,
@@ -82,6 +84,7 @@ const renderLoginView = async (entryPoint, versionTag, alerts = []) => {
82
84
  headers: [
83
85
  { css: `static_assets/${versionTag}/saltcorn.css` },
84
86
  { script: "js/iframe_view_utils.js" },
87
+ ...(roleHeaders ? roleHeaders : []),
85
88
  ],
86
89
  csrfToken: false,
87
90
  });