mirror of
https://github.com/nocobase/nocobase
synced 2024-11-17 18:17:19 +00:00
29bf187fbf
* test(e2e): better locators for designer buttons
* fix: make test passing
* refactor: remove DesignerControl
* chore: better locators
* fix: should not disable add-menu-item
* chore: better test id for block
* chore: optimize Action
* chore: remove role in BlockItem
* feat: improve locators
* chore: menu & add block
* chore: initializer
* chore: testid -> aria label
* chore: tabs
* chore: designers
* refactor: optimize schemaInitializer
* refactor: rename
* chore: add collectionName
* chore: block item
* chore: action
* fix: avoid crashting
* chore(e2e): add __E2E__
* chore: all dialog
* chore: add aria-label for block menu
* Revert "chore: add aria-label for block menu"
This reverts commit 6a840ef816
.
* chore: optimize aria-label of Action
* chore: schema-initializer
* chore(e2e): increase timeout
* chore: schema settings
* chore: optimize table
* chore: workflow
* chore: plugin manager
* chore: collection manager and workflow
* chore: details of workflow
* chore: remove testid of Select
* test: fix unit-tests
* test: fix unit-tests
* test(e2e): passing tests
* test: fix unit test
* chore: should use hover
* test: passing tests
* chore: passing tests
* chore: fix CI
* chore: fix CI
* chore: increase timeout in CI
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
36 lines
914 B
TypeScript
36 lines
914 B
TypeScript
import { Alert } from 'antd';
|
|
import React from 'react';
|
|
|
|
import { cx, css } from '@nocobase/client';
|
|
|
|
import { Branch } from './Branch';
|
|
import { useFlowContext } from './FlowContext';
|
|
import { lang } from './locale';
|
|
import useStyles from './style';
|
|
import { TriggerConfig } from './triggers';
|
|
|
|
export function CanvasContent({ entry }) {
|
|
const { styles } = useStyles();
|
|
const { workflow } = useFlowContext();
|
|
|
|
return (
|
|
<div className="workflow-canvas">
|
|
{workflow?.executed ? (
|
|
<Alert type="warning" message={lang('Executed workflow cannot be modified')} showIcon />
|
|
) : null}
|
|
<TriggerConfig />
|
|
<div
|
|
className={cx(
|
|
styles.branchBlockClass,
|
|
css`
|
|
margin-top: 0 !important;
|
|
`,
|
|
)}
|
|
>
|
|
<Branch entry={entry} />
|
|
</div>
|
|
<div className={styles.terminalClass}>{lang('End')}</div>
|
|
</div>
|
|
);
|
|
}
|