chore: workflow trigger type can change now (#1200)
Reviewed-on: daoyoucloud/tachybase#1200
This commit is contained in:
parent
3c23d87c95
commit
a8191ba6c5
@ -443,6 +443,7 @@ export const workflowSchema: ISchema = {
|
||||
title: '{{ t("Edit") }}',
|
||||
properties: {
|
||||
title: workflowFieldset.title,
|
||||
type: workflowFieldset.type,
|
||||
enabled: workflowFieldset.enabled,
|
||||
sync: workflowFieldset.sync,
|
||||
description: workflowFieldset.description,
|
||||
|
@ -8,7 +8,7 @@ export async function update(context: Context, next) {
|
||||
const repository = utils.getRepositoryFromParams(context) as Repository;
|
||||
const { filterByTk, values } = context.action.params;
|
||||
context.action.mergeParams({
|
||||
whitelist: ['title', 'description', 'enabled', 'triggerTitle', 'config', 'options'],
|
||||
whitelist: ['title', 'description', 'enabled', 'triggerTitle', 'config', 'options', 'type'],
|
||||
});
|
||||
// only enable/disable
|
||||
if (Object.keys(values).includes('config')) {
|
||||
|
Loading…
Reference in New Issue
Block a user