From d7262e2d074d4e57dfc5308528aa3e1d2938a7c8 Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Wed, 13 Dec 2023 16:01:05 +0100 Subject: [PATCH] [Upd #18] Updated buttons hiding dependent on user role --- js/components/record/Record.js | 44 ++++++++++++++++------------------ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/js/components/record/Record.js b/js/components/record/Record.js index 27c0c973..df1ad05f 100644 --- a/js/components/record/Record.js +++ b/js/components/record/Record.js @@ -101,40 +101,38 @@ class Record extends React.Component { const {record, recordSaved, formgen} = this.props; return
- {this._renderRoleSpecificButtons()} + + + +
} - _renderRoleSpecificButtons() { - const {record, recordSaved, formgen} = this.props; - - return <> - {EXTENSIONS === EXTENSION_CONSTANTS.SUPPLIER && - - } - {EXTENSIONS === EXTENSION_CONSTANTS.OPERATOR && - } - ; - } - _renderInstitution() { const record = this.props.record; if (!record.institution) {