@saltcorn/markup
Advanced tools
Comparing version 0.7.2-beta.10 to 0.7.2
@@ -345,3 +345,3 @@ "use strict"; | ||
}, | ||
action({ action_name, action_label, action_url, confirm, action_style, action_size, action_icon, configuration, action_bgcol, action_bordercol, action_textcol, }) { | ||
action({ action_link, action_name, action_label, action_url, confirm, action_style, action_size, action_icon, configuration, action_bgcol, action_bordercol, action_textcol, }) { | ||
const isMobile = !isNode || form.req?.smr; | ||
@@ -415,2 +415,4 @@ let style = action_style === "btn-custom-color" | ||
} | ||
if (action_link) | ||
return action_link; | ||
if (isNode && !form.req?.smr) { | ||
@@ -417,0 +419,0 @@ const submitAttr = form.xhrSubmit |
@@ -46,3 +46,3 @@ "use strict"; | ||
const post_btn = (href, s, csrfToken, { btnClass = "btn-primary", onClick, small, style, ajax, reload_on_done, reload_delay, klass = "", formClass, spinner, req, confirm, icon, } = {}) => `<form action="${text(href)}" method="post"${formClass ? ` class="${formClass}"` : ""}> | ||
<input type="hidden" name="_csrf" value="${csrfToken}"> | ||
${ajax ? "" : `<input type="hidden" name="_csrf" value="${csrfToken}">`} | ||
<button ${ajax ? 'type="button"' : 'type="submit"'} ${onClick | ||
@@ -49,0 +49,0 @@ ? `onclick="${spinner ? "press_store_button(this);" : ""}${onClick}"` |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.7.2-beta.10", | ||
"version": "0.7.2", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -36,3 +36,3 @@ "homepage": "https://saltcorn.com", | ||
"devDependencies": { | ||
"@saltcorn/types": "0.7.2-beta.10", | ||
"@saltcorn/types": "0.7.2", | ||
"@types/escape-html": "^1.0.1", | ||
@@ -39,0 +39,0 @@ "@types/jest": "^27.0.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235514
2561