Skip to content
Snippets Groups Projects
Commit e1e99e2b authored by Sandro Weber's avatar Sandro Weber
Browse files

more layouting

parent 9a61af13
No related branches found
No related tags found
No related merge requests found
.tf-editor-container {
margin: 10px;
}
.tf-editor-header {
display: flex;
flex-direction: row;
......@@ -41,4 +37,8 @@
.tf-editor-text-unsaved {
color: orange;
}
.tf-editor-codemirror-container {
overflow: scroll;
}
\ No newline at end of file
......@@ -67,7 +67,6 @@ export default class TransceiverFunctionEditor extends React.Component {
console.info(['this.hasUnsavedChanges', this.hasUnsavedChanges]);
}
// setFile(directoryPath, filename, data, byname = true, contentType = 'text/plain')
async saveTF() {
let response = await ExperimentStorageService.instance.setFile(
this.props.experimentId, this.state.selectedFilename, this.state.code);
......@@ -106,15 +105,15 @@ export default class TransceiverFunctionEditor extends React.Component {
'tf-editor-text-unsaved' : 'tf-editor-text-saved'}>
{this.state.textChanges}
</div>
{/*<div className='tf-editor-ui-save'>
</div>*/}
</div>
</div>
<CodeMirror
value={this.state.code}
maxHeight="100%"
onChange={(change, viewUpdate) => this.onChangeCodemirror(change, viewUpdate)}/>
<div className='tf-editor-codemirror-container'>
<CodeMirror
value={this.state.code}
onChange={(change, viewUpdate) => this.onChangeCodemirror(change, viewUpdate)}/>
</div>
{this.state.showDialogUnsavedChanges ?
<div>
<Modal show={this.state.showDialogUnsavedChanges}
......
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