From 9836513d287396fabcba85956366e6410d7363ef Mon Sep 17 00:00:00 2001
From: historia <[not public]>
Date: Thu, 9 Jul 2026 23:21:28 -0400
Subject: fix(admin): remove extraneous message button, arrow buttons and
checkboxes work, formatting fixup
---
internal/admin/static/intereditor.js | 50 ++++++++++++++++++------------------
1 file changed, 25 insertions(+), 25 deletions(-)
(limited to 'internal/admin/static/intereditor.js')
diff --git a/internal/admin/static/intereditor.js b/internal/admin/static/intereditor.js
index 653bccf..a17225a 100644
--- a/internal/admin/static/intereditor.js
+++ b/internal/admin/static/intereditor.js
@@ -78,7 +78,7 @@ function ie_renderStepAddbar(step, secId, idx, si, secPath) {
function ie_renderBottomAddbar(secId, secPath, idx) {
var h = '';
IE_STEP_KINDS.forEach(function(sk) {
- h += '';
+ h += '';
});
return h;
}
@@ -331,7 +331,15 @@ function ie_renderCond(condObj, secId, idx, secPath, kind) {
var h = '';
var isGroup = condObj && (condObj.all_of || condObj.any_of);
if (condObj && typeof condObj === 'object') {
+ var condTitleText = '';
+ if (kind && kind.indexOf('step-') === 0) {
+ var sn = parseInt(kind.slice(5), 10);
+ if (!isNaN(sn)) condTitleText = 'Condition for Step ' + (sn + 1);
+ } else if (kind === 'entry') {
+ condTitleText = 'Condition for Action Block';
+ }
h += '
';
+ if (condTitleText) h += '
' + esc(condTitleText) + '
';
h += ie_renderGroup(condObj, secId, secPath, idx, '', kind);
h += '
';
}
@@ -517,7 +525,7 @@ function ie_renderAct(stepObj, secId, idx, si, secPath) {
function ie_renderMessages(step, secId, idx, si, secPath) {
var present = step && Array.isArray(step.messages);
if (!present) {
- return '';
+ return '';
}
var msgs = step.messages;
var rmFn = 'ie_removeMessage(this,\'' + escAttr(secId) + '\',\'' + escAttr(secPath) + '\',' + idx + ',' + si + ')';
@@ -549,24 +557,25 @@ function ie_renderStepList(steps, secId, idx, secPath) {
h += '
';
h += '
';
h += 'Step ' + (si + 1) + '';
- h += '';
+ h += '';
+ if (!stepCond) {
+ h += '';
+ }
h += '';
if (si > 0) h += '';
if (si < steps.length - 1) h += '';
h += '';
h += '
';
- h += '
';
if (stepCond) {
+ h += '
';
h += ie_renderCond(step.condition || null, secId, idx, secPath, 'step-' + si);
- } else {
- h += '';
+ h += '