Commit 59020aa3 authored by Marco Sehrer's avatar Marco Sehrer
Browse files

Implement isEdited style for all elements

parent 8cebf9cc
......@@ -178,7 +178,7 @@ export default class SampleDetails extends React.Component {
handleTopSecretChanged(e) {
let sample = this.state.sample;
let checkedState = this.refs.topSecretInput.props.checked;
sample.is_top_secret = !checkedState;
this.setState({
sample: sample
......@@ -513,7 +513,7 @@ export default class SampleDetails extends React.Component {
onCancel={this.handleStructureEditorCancel.bind(this)}
molfile={molfile}
/>
<Panel header="Sample Details" bsStyle='primary'>
<Panel header="Sample Details" bsStyle={sample.isEdited ? 'info' : 'primary'}>
{this.sampleHeader(sample)}
<ListGroup fill>
......
......@@ -90,7 +90,7 @@ export default class ScreenDetails extends Component {
const submitLabel = (id == '_new_') ? "Create" : "Save";
return (
<div key={screen.id}>
<Panel header="Screen Details" bsStyle='primary'>
<Panel header="Screen Details" bsStyle={screen.isEdited ? 'info' : 'primary'}>
<h3>{name}</h3>
<ElementCollectionLabels element={screen}/>
<ListGroup fill>
......
......@@ -81,7 +81,7 @@ export default class WellplateDetails extends Component {
return (
<div key={wellplate.id}>
<Panel header="Wellplate Details" bsStyle='primary'>
<Panel header="Wellplate Details" bsStyle={wellplate.isEdited ? 'info' : 'primary'} >
<h3>{name}</h3>
<ElementCollectionLabels element={wellplate}/>
<ListGroup fill>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment