mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
Ask process user input every time
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
export let transition: Ref<Transition>
|
||||
export let key: string
|
||||
export let _class: Ref<Class<Doc>>
|
||||
|
||||
let value: any | undefined = undefined
|
||||
export let value: any | undefined = undefined
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
const client = getClient()
|
||||
|
||||
@@ -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