Skip to content

Commit

Permalink
fix: changed button and added missing word in snapshots.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lupusA committed Dec 8, 2023
1 parent f256cf1 commit 0781675
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/Snapshots.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class Snapshots extends Component {

case "PENDING":
return <>
<Spinner data-testid="snapshot-pending" animation="border" variant="secondary" size="sm" title="Snapshot will after the previous snapshot completes" />
<Spinner data-testid="snapshot-pending" animation="border" variant="secondary" size="sm" title="Snapshot will start after the previous snapshot completes" />
&nbsp;Pending
</>;

Expand Down
6 changes: 4 additions & 2 deletions src/utils/uiutil.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faBan, faCheck, faChevronLeft, faCopy, faExclamationCircle, faExclamationTriangle, faFolderOpen, faTerminal, faWindowClose } from '@fortawesome/free-solid-svg-icons';
import { faBan, faCheck, faChevronLeft, faCopy, faExclamationCircle, faExclamationTriangle, faFolderOpen, faRectangleXmark, faTerminal} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import axios from 'axios';
import React, { useState } from 'react';
Expand Down Expand Up @@ -275,7 +275,9 @@ export function taskStatusSymbol(task) {
return <>
<Spinner animation="border" variant="primary" size="sm" /> Running for {dur}
&nbsp;
<FontAwesomeIcon size="sm" color="red" icon={faWindowClose} title="Cancel task" onClick={() => cancelTask(task.id)} />
<button className="btn btn-link" type="button" onClick={() => cancelTask(task.id)}>
<FontAwesomeIcon color="red" title="Cancel task" size='sm' icon={faRectangleXmark} />
</button>
</>;

case "SUCCESS":
Expand Down

0 comments on commit 0781675

Please sign in to comment.