Skip to content

Commit

Permalink
[Upd #18] Record status is now visible by regular user
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Dec 13, 2023
1 parent 627ffc8 commit 0bf20fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 4 additions & 5 deletions js/components/record/RecordRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ let RecordRow = (props) => {
<td className='report-row content-center'>
{formatDate(new Date(record.lastModified ? record.lastModified : record.dateCreated))}
</td>
{ isAdmin &&
<td className='report-row content-center'>
<HelpIcon text={getCompletionStatusTooltip()} glyph={getGlyph()}/>
</td>
}
<td className='report-row content-center'>
<HelpIcon text={getCompletionStatusTooltip()} glyph={getGlyph()}/>
</td>

<td className='report-row actions'>
<Button variant='primary' size='sm' title={props.i18n('records.open-tooltip')}
onClick={() => props.onEdit(record)}>{props.i18n('open')}</Button>
Expand Down
4 changes: 1 addition & 3 deletions js/components/record/RecordTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ class RecordTable extends React.Component {
&& <th className='w-25 content-center'>{this.i18n('records.form-template')}</th>
}
<th className='w-25 content-center'>{this.i18n('records.last-modified')}</th>
{(this._isAdmin())
&& <th className='w-15 content-center'>{this.i18n('records.completion-status')}</th>
}
<th className='w-15 content-center'>{this.i18n('records.completion-status')}</th>
<th className='w-20 content-center'>{this.i18n('actions')}</th>
</tr>
</thead>
Expand Down

0 comments on commit 0bf20fa

Please sign in to comment.