Skip to content

Commit

Permalink
Merge pull request #1152 from hubmapconsortium/readToggle
Browse files Browse the repository at this point in the history
Toggle the Read switch override
  • Loading branch information
yuanzhou committed Jun 26, 2023
2 parents 5035f07 + f63a050 commit cff918f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/components/uuid/tissue_form_components/tissueForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ class TissueForm extends Component {
if (resp.status === 200) {
let read_only_state = !resp.results.has_write_priv; //toggle this value sense results are actually opposite for UI
// OVERRIDE: UNCOMMENT THE LINE BELOW TO ALWAYS ALLOW THE SCREEN TO BE EDITED. TEMPORARY SOLUTION
// read_only_state = false // editing on: 7/08/22
read_only_state = false // editing on: 6/26/23
// Commented: 10/18/22
// Uncommented:7/08/22
// Uncommented:6/26/23
this.setState({
editingEntity: entity_data,
readOnly: read_only_state, // used for hidding UI components
Expand Down

0 comments on commit cff918f

Please sign in to comment.