@saltcorn/agents 0.8.0 → 0.8.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/agent-view.js +14 -12
- package/package.json +1 -1
package/agent-view.js
CHANGED
|
@@ -1537,18 +1537,20 @@ const execute_user_action = async (
|
|
|
1537
1537
|
[req.user.id],
|
|
1538
1538
|
);
|
|
1539
1539
|
// remove from html_interactions
|
|
1540
|
-
run.context.html_interactions = run.context.html_interactions.map(
|
|
1541
|
-
(
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1540
|
+
run.context.html_interactions = run.context.html_interactions.map((hi) =>
|
|
1541
|
+
hi.replace(
|
|
1542
|
+
`button data-useraction-id="${uadata.rndid}"`,
|
|
1543
|
+
`button style="display: none;" data-useraction-id="${uadata.rndid}"`,
|
|
1544
|
+
),
|
|
1545
|
+
);
|
|
1546
|
+
run.context.html_interactions.push(
|
|
1547
|
+
wrapSegment(
|
|
1548
|
+
uadata.click_replace_text,
|
|
1549
|
+
"You",
|
|
1550
|
+
true,
|
|
1551
|
+
config.layout,
|
|
1552
|
+
req?.user,
|
|
1553
|
+
),
|
|
1552
1554
|
);
|
|
1553
1555
|
await run.update({ context: run.context });
|
|
1554
1556
|
}
|