Skip to content

Commit

Permalink
Merge pull request #740 from Lunatic-Labs/SKIL-490
Browse files Browse the repository at this point in the history
SKIL-490
  • Loading branch information
aparriaran authored Oct 24, 2024
2 parents f0c45a2 + fc662a2 commit 133f393
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions FrontEndReact/src/View/Admin/View/CompleteAssessmentTask/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,19 +394,21 @@ class Form extends Component {
<Alert severity={"success"} sx={{ height: "fit-content"}}>Assessment Saved!</Alert>
}

<Button
variant="text"
color="primary"
startIcon={<RefreshIcon />}
arialabel="refreshButton"

onClick={() => {
this.props.refreshUnits();
}}
aria-label="refreshButton"
>
Refresh
</Button>
{this.props.role_name !== "Student" &&
<Button
variant="text"
color="primary"
startIcon={<RefreshIcon />}
arialabel="refreshButton"

onClick={() => {
this.props.refreshUnits();
}}
aria-label="refreshButton"
>
Refresh
</Button>
}

<Button
id="formSubmitButton"
Expand Down

0 comments on commit 133f393

Please sign in to comment.