Skip to content

Commit

Permalink
[New #18] Added record in progress icon and set it as default
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope authored and blcham committed Dec 17, 2023
1 parent c5977e1 commit 8a1b3bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions js/components/HelpIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import PropTypes from "prop-types";
import {FaQuestionCircle} from 'react-icons/fa';
import {FaCheck} from 'react-icons/fa';
import {FaTimes} from 'react-icons/fa';
import {FaTasks} from "react-icons/fa";

const HelpIcon = (props) => {
const tooltip = <Tooltip id='help-tooltip'>{props.text}</Tooltip>;
Expand All @@ -18,6 +19,8 @@ const HelpIcon = (props) => {
return <FaCheck className={'ok-icon ' + props.className}/>;
case "remove":
return <FaTimes className={'remove-icon ' + props.className}/>;
case "progress":
return <FaTasks className={'progress-icon ' + props.className}/>;
default:
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion js/components/record/RecordRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let RecordRow = (props) => {
</td>
{ isAdmin &&
<td className='report-row content-center'>
<HelpIcon text={completionTooltip} glyph={isComplete ? 'ok' : 'remove'}/>
<HelpIcon text={completionTooltip} glyph={isComplete ? 'ok' : 'progress'}/>
</td>
}
<td className='report-row actions'>
Expand Down
2 changes: 1 addition & 1 deletion js/constants/DefaultConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const INPUT_LENGTH_THRESHOLD = 70;

export const PASSWORD_LENGTH = 4;

export const RECORD_REQUIRED_FIELDS = ['localName'];
export const RECORD_REQUIRED_FIELDS = ['localName', 'completed'];

export const ALERT_TYPES = {
INFO: 'info',
Expand Down

0 comments on commit 8a1b3bd

Please sign in to comment.