From a16f6647473c5ced1acb4b7043a041b30e1d96b7 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 d62a9afe..63856316 100644 --- a/js/components/record/Record.js +++ b/js/components/record/Record.js @@ -106,40 +106,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) {