mirror of
https://github.com/nocobase/nocobase.git
synced 2026-10-29 18:16:18 +08:00
chore(plugin-workflow): remove demo code (#6846)
This commit is contained in:
@@ -225,7 +225,7 @@ export function RemoveButton() {
|
||||
title: lang('Can not delete'),
|
||||
content: lang(
|
||||
'The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.',
|
||||
{ nodes: usingNodes.map((item) => `#${item.id}`).join(', ') },
|
||||
{ nodes: usingNodes.map((item) => item.title).join(', ') },
|
||||
),
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
/**
|
||||
* This file is part of the NocoBase (R) project.
|
||||
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
||||
* Authors: NocoBase Team.
|
||||
*
|
||||
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { Instruction } from '.';
|
||||
import { NAMESPACE } from '../locale';
|
||||
import { WorkflowVariableInput } from '../variable';
|
||||
|
||||
export default class extends Instruction {
|
||||
title = `{{t("Assign output variable", { ns: "${NAMESPACE}" })}}`;
|
||||
type = 'output';
|
||||
group = 'control';
|
||||
description = `{{t("Assign variables for workflow output, which could be used in other workflows as result of subflow.", { ns: "${NAMESPACE}" })}}`;
|
||||
fieldset = {
|
||||
result: {
|
||||
type: 'object',
|
||||
title: `{{t("Value", { ns: "${NAMESPACE}" })}}`,
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'WorkflowVariableInput',
|
||||
'x-component-props': {
|
||||
useTypedConstant: true,
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
};
|
||||
components = {
|
||||
WorkflowVariableInput,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user