From 0bf20facad132b013a94d81aaf63e635f46b3550 Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Wed, 13 Dec 2023 15:33:22 +0100 Subject: [PATCH] [Upd #18] Record status is now visible by regular user --- js/components/record/RecordRow.js | 9 ++++----- js/components/record/RecordTable.js | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/js/components/record/RecordRow.js b/js/components/record/RecordRow.js index 5feb00e7..91cd6cbf 100644 --- a/js/components/record/RecordRow.js +++ b/js/components/record/RecordRow.js @@ -67,11 +67,10 @@ let RecordRow = (props) => { {formatDate(new Date(record.lastModified ? record.lastModified : record.dateCreated))} - { isAdmin && - - - - } + + + + diff --git a/js/components/record/RecordTable.js b/js/components/record/RecordTable.js index 15f75ca0..091be368 100644 --- a/js/components/record/RecordTable.js +++ b/js/components/record/RecordTable.js @@ -91,9 +91,7 @@ class RecordTable extends React.Component { && {this.i18n('records.form-template')} } {this.i18n('records.last-modified')} - {(this._isAdmin()) - && {this.i18n('records.completion-status')} - } + {this.i18n('records.completion-status')} {this.i18n('actions')}