Skip to content

Commit

Permalink
PullRequest: 454 Fixes oceanbase/odc#2692
Browse files Browse the repository at this point in the history
Merge branch 'fix/dev-4.3.0-2692 of [email protected]:oceanbase/oceanbase-developer-center.git into dev-4.3.0

https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/454


Signed-off-by: 晓康 <[email protected]>


* Fixes oceanbase/odc#2692
  • Loading branch information
yezaoshu committed Jun 7, 2024
1 parent c1771da commit 26908a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/component/Task/component/ActionBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import React, { useEffect, useState } from 'react';
import { isCycleTask } from '../../helper';
import RollBackModal from '../RollbackModal';
import { TaskTypeMap } from '@/component/Task/component/TaskTable';
import type { ICycleTaskRecord } from '@/d.ts';

interface IProps {
userStore?: UserStore;
Expand Down Expand Up @@ -817,6 +818,13 @@ const ActionBar: React.FC<IProps> = inject(
case TaskStatus.ENABLED: {
if (isOwner) {
tools = [viewBtn, editBtn, disableBtn];
if (
[TaskType.DATA_ARCHIVE, TaskType.DATA_DELETE].includes(task?.type) &&
(task as ICycleTaskRecord<TaskRecordParameters>)?.triggerConfig?.triggerStrategy ===
TaskExecStrategy.START_NOW
) {
tools = [viewBtn];
}
} else {
tools = [viewBtn];
}
Expand Down

0 comments on commit 26908a6

Please sign in to comment.