Browse Source

fix (#10678)

3.0.0/version-upgrade
zhuxt2015 2 years ago committed by caishunfeng
parent
commit
bb19830cb3
  1. 1
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
  2. 1
      dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx
  3. 1
      dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts

1
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

@ -1755,6 +1755,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
final Date date = new Date();
processDefinition.setCreateTime(date);
processDefinition.setUpdateTime(date);
processDefinition.setReleaseState(ReleaseState.OFFLINE);
if (StringUtils.isNotBlank(processDefinition.getLocations())) {
ArrayNode jsonNodes = JSONUtils.parseArray(processDefinition.getLocations());
for (int i = 0; i < jsonNodes.size(); i++) {

1
dolphinscheduler-ui/src/views/projects/workflow/definition/components/table-action.tsx

@ -212,7 +212,6 @@ export default defineComponent({
type='info'
tag='div'
circle
disabled={releaseState === 'ONLINE'}
onClick={this.handleCopyWorkflow}
>
<NIcon>

1
dolphinscheduler-ui/src/views/projects/workflow/definition/use-table.ts

@ -70,7 +70,6 @@ export function useTable() {
variables.columns = [
{
type: 'selection',
disabled: (row) => row.releaseState === 'ONLINE',
className: 'btn-selected',
...COLUMN_WIDTH_CONFIG['selection']
},

Loading…
Cancel
Save