mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
Card spaces (#8509)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
const client = getClient()
|
||||
|
||||
let process: Ref<Process> | undefined = value
|
||||
let card: Ref<Card> | undefined
|
||||
let card: Card | undefined
|
||||
|
||||
const processes = client.getModel().findAllSync(plugin.class.Process, {})
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
async function runProcess (): Promise<void> {
|
||||
if (process === undefined || card === undefined) return
|
||||
await createExecution(card, process)
|
||||
await createExecution(card._id, process, card.space)
|
||||
dispatch('close')
|
||||
}
|
||||
|
||||
@@ -94,7 +94,10 @@
|
||||
<CardSelector
|
||||
kind={'regular'}
|
||||
size={'medium'}
|
||||
bind:value={card}
|
||||
value={card?._id}
|
||||
on:value={(e) => {
|
||||
card = e.detail
|
||||
}}
|
||||
{ignoreObjects}
|
||||
_class={selectedProcess.masterTag}
|
||||
/>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
async function runProcess (_id: Ref<Process>): Promise<void> {
|
||||
await createExecution(value._id, _id)
|
||||
await createExecution(value._id, _id, value.space)
|
||||
dispatch('close')
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user