feat(automations): parallel branch canvas, simple/advanced level per org, rules list UX
This commit is contained in:
@@ -335,6 +335,12 @@ function toggleModule(key: OrgModuleKey) {
|
||||
}
|
||||
}
|
||||
|
||||
function setAutomationLevel(advanced: boolean) {
|
||||
const key: OrgModuleKey = 'workflow_automations_advanced';
|
||||
const rest = moduleDraft.value.filter((k) => k !== key);
|
||||
moduleDraft.value = advanced ? [...rest, key] : rest;
|
||||
}
|
||||
|
||||
function selectGroup(keys: OrgModuleKey[], on: boolean) {
|
||||
if (on) {
|
||||
moduleDraft.value = [...new Set([...moduleDraft.value, ...keys])];
|
||||
@@ -555,6 +561,29 @@ onMounted(() => {
|
||||
{{ ORG_MODULE_LABELS[key] }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="mod-group">
|
||||
<div class="mod-group-head">
|
||||
<span>سطح اتوماسیون گردش کار</span>
|
||||
</div>
|
||||
<label class="mod-item">
|
||||
<input
|
||||
type="radio"
|
||||
:name="`wf-level-${org.id}`"
|
||||
:checked="!moduleDraft.includes('workflow_automations_advanced')"
|
||||
@change="setAutomationLevel(false)"
|
||||
/>
|
||||
ساده (زنجیرهٔ خطی، مثل قبل)
|
||||
</label>
|
||||
<label class="mod-item">
|
||||
<input
|
||||
type="radio"
|
||||
:name="`wf-level-${org.id}`"
|
||||
:checked="moduleDraft.includes('workflow_automations_advanced')"
|
||||
@change="setAutomationLevel(true)"
|
||||
/>
|
||||
حرفهای (چندشاخه، شرط روی پاسخ فرم، تقسیم نوبتی)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-settings">
|
||||
|
||||
Reference in New Issue
Block a user