@saltcorn/mobile-app 1.4.1-beta.2 → 1.5.0-beta.1
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
package/src/helpers/db_schema.js
CHANGED
|
@@ -55,7 +55,8 @@ export async function updateScTables(tablesJSON, skipScPlugins = true) {
|
|
|
55
55
|
(skipScPlugins && table === "_sc_plugins") ||
|
|
56
56
|
table === "_sc_workflow_runs" ||
|
|
57
57
|
table === "_sc_workflow_trace" ||
|
|
58
|
-
table === "_sc_metadata"
|
|
58
|
+
table === "_sc_metadata" ||
|
|
59
|
+
table === "_sc_api_tokens"
|
|
59
60
|
)
|
|
60
61
|
continue;
|
|
61
62
|
if (table === "_sc_tables") await dropDeletedTables(rows);
|
package/src/routing/utils.js
CHANGED
|
@@ -50,7 +50,9 @@ const getMenu = (req) => {
|
|
|
50
50
|
const role = mobileCfg.user.role_id || 100;
|
|
51
51
|
const extraMenu = saltcorn.data.web_mobile_commons.get_extra_menu(
|
|
52
52
|
role,
|
|
53
|
-
req.__
|
|
53
|
+
req.__,
|
|
54
|
+
undefined,
|
|
55
|
+
req
|
|
54
56
|
);
|
|
55
57
|
if (mobileCfg.inErrorState) {
|
|
56
58
|
const entryLink = mobileCfg.entry_point?.startsWith("get")
|
|
@@ -124,6 +124,8 @@ async function formSubmit(e, urlSuffix, viewname, noSubmitCb, matchingState) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
function sc_form_submit_in_progress() {}
|
|
128
|
+
|
|
127
129
|
async function ajaxSubmitForm(e, force_no_reload, event) {
|
|
128
130
|
const form = $(e).closest("form");
|
|
129
131
|
const action = form.attr("action");
|
|
@@ -405,8 +407,8 @@ async function pjax_to(href, query, e) {
|
|
|
405
407
|
let $dest = localizer.length
|
|
406
408
|
? localizer
|
|
407
409
|
: inModal
|
|
408
|
-
|
|
409
|
-
|
|
410
|
+
? $("#scmodal .modal-body")
|
|
411
|
+
: $("#page-inner-content");
|
|
410
412
|
if (!$dest.length)
|
|
411
413
|
await parent.saltcorn.mobileApp.navigation.handleRoute(safeHref, query);
|
|
412
414
|
else
|