@saltcorn/mobile-app 0.8.7 → 0.8.8-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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saltcorn/mobile-app",
3
3
  "displayName": "Saltcorn mobile app",
4
- "version": "0.8.7",
4
+ "version": "0.8.8-beta.0",
5
5
  "description": "Apache Cordova application with @saltcorn/markup",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -10,7 +10,7 @@ const postToggleField = async (context) => {
10
10
  if (isOfflineMode || localTableIds.indexOf(table.id) >= 0) {
11
11
  if (role_id > table.min_role_write)
12
12
  throw new saltcorn.data.utils.NotAuthorized(i18next.t("Not authorized"));
13
- await table.toggleBool(+id, field_name);
13
+ await table.toggleBool(+id, field_name); //TODO call with user
14
14
  if (isOfflineMode && !(await offlineHelper.getLastOfflineSession()))
15
15
  await offlineHelper.setOfflineSession({ offlineUser: user_name });
16
16
  } else {