mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 20:45:00 +02:00
Ask process user input every time
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -458,11 +458,17 @@ export async function getTransitionUserInput (
|
||||
for (const key in action.params) {
|
||||
const value = (action.params as any)[key]
|
||||
const context = parseContext(value)
|
||||
if (context !== undefined && context.type === 'userRequest' && userContext[context.id] === undefined) {
|
||||
if (context !== undefined && context.type === 'userRequest') {
|
||||
const promise = new Promise<void>((resolve) => {
|
||||
showPopup(
|
||||
process.component.RequestUserInput,
|
||||
{ processId, transition: transition._id, key: context.key, _class: context._class },
|
||||
{
|
||||
processId,
|
||||
transition: transition._id,
|
||||
key: context.key,
|
||||
_class: context._class,
|
||||
value: userContext[context.id]
|
||||
},
|
||||
undefined,
|
||||
(res) => {
|
||||
if (res?.value !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user