fix(plugin-workflow): fix schema name conflict (#1087)
This commit is contained in:
parent
c470209ecd
commit
46161e8fd9
@ -3,7 +3,6 @@ import { Link, useHistory } from 'react-router-dom';
|
|||||||
import { Dropdown, Menu, Button, Tag, Switch, message, Breadcrumb } from 'antd';
|
import { Dropdown, Menu, Button, Tag, Switch, message, Breadcrumb } from 'antd';
|
||||||
import { DownOutlined, RightOutlined, EllipsisOutlined } from '@ant-design/icons';
|
import { DownOutlined, RightOutlined, EllipsisOutlined } from '@ant-design/icons';
|
||||||
import { cx } from '@emotion/css';
|
import { cx } from '@emotion/css';
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -18,11 +17,10 @@ import { FlowContext } from './FlowContext';
|
|||||||
import { branchBlockClass, nodeCardClass, nodeMetaClass, workflowVersionDropdownClass } from './style';
|
import { branchBlockClass, nodeCardClass, nodeMetaClass, workflowVersionDropdownClass } from './style';
|
||||||
import { TriggerConfig } from './triggers';
|
import { TriggerConfig } from './triggers';
|
||||||
import { Branch } from './Branch';
|
import { Branch } from './Branch';
|
||||||
import { executionCollection, executionSchema } from './schemas/executions';
|
import { executionSchema } from './schemas/executions';
|
||||||
import { ExecutionLink } from './ExecutionLink';
|
import { ExecutionLink } from './ExecutionLink';
|
||||||
import { ExecutionResourceProvider } from './ExecutionResourceProvider';
|
import { ExecutionResourceProvider } from './ExecutionResourceProvider';
|
||||||
|
import { lang } from './locale';
|
||||||
import { lang, NAMESPACE } from './locale';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -174,12 +172,7 @@ export function WorkflowCanvas() {
|
|||||||
</Dropdown>
|
</Dropdown>
|
||||||
<ActionContext.Provider value={{ visible, setVisible }}>
|
<ActionContext.Provider value={{ visible, setVisible }}>
|
||||||
<SchemaComponent
|
<SchemaComponent
|
||||||
schema={{
|
schema={executionSchema}
|
||||||
type: 'void',
|
|
||||||
properties: {
|
|
||||||
drawer: executionSchema
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
components={{
|
components={{
|
||||||
ExecutionResourceProvider,
|
ExecutionResourceProvider,
|
||||||
ExecutionLink
|
ExecutionLink
|
||||||
|
@ -51,6 +51,7 @@ export const executionCollection = {
|
|||||||
|
|
||||||
export const executionSchema = {
|
export const executionSchema = {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
|
name: 'executionHistoryDrawer',
|
||||||
title: `{{t("Execution history", { ns: "${NAMESPACE}" })}}`,
|
title: `{{t("Execution history", { ns: "${NAMESPACE}" })}}`,
|
||||||
'x-component': 'Action.Drawer',
|
'x-component': 'Action.Drawer',
|
||||||
properties: {
|
properties: {
|
||||||
|
Loading…
Reference in New Issue
Block a user