Skip to content

Commit

Permalink
[INLONG-9895][Dashboard] Support restart when the task fails (#9898)
Browse files Browse the repository at this point in the history
  • Loading branch information
haifxu authored Mar 29, 2024
1 parent 6477e99 commit 5bc955d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const useColumns = ({ onDelete, openModal, onRestart, onStop }) => {
<Button type="link" onClick={() => onDelete(record)}>
{i18n.t('basic.Delete')}
</Button>
{record?.status && record?.status === 140 && (
{record?.status && (record?.status === 140 || record?.status === 120) && (
<Button type="link" onClick={() => onRestart(record)}>
{i18n.t('pages.GroupDashboard.config.Restart')}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const useColumns = ({ onDelete, openModal, onRestart, onStop }) => {
<Button type="link" onClick={() => onDelete(record)}>
{i18n.t('basic.Delete')}
</Button>
{record?.status && record?.status === 140 && (
{record?.status && (record?.status === 140 || record?.status === 120) && (
<Button type="link" onClick={() => onRestart(record)}>
{i18n.t('pages.SynchronizeDashboard.config.Restart')}
</Button>
Expand Down

0 comments on commit 5bc955d

Please sign in to comment.