-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple custom layouts for tracing views #3299
Merged
Merged
Changes from 24 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f8f5f53
added UI support, moving layout into store
MichaelBuessemeyer 024c4e9
made reset layout items in action bar into an own component; added ac…
MichaelBuessemeyer 3c8bdf8
moved layout into less file, moved persisting methods
MichaelBuessemeyer 17fda10
changed layout, goldenlayout adapter no gets layout via a method, and…
MichaelBuessemeyer 16ed9c8
added resetting, deleting, adding a new layout; added modal to enter …
MichaelBuessemeyer 0370fe4
added modal
MichaelBuessemeyer 6571528
fixed import errors and added saving in local storage aber deleting a…
MichaelBuessemeyer 7101a39
corrected adding, deleting and resetting the layout
MichaelBuessemeyer db153c5
fixed linter error
MichaelBuessemeyer 59d9dcf
fixed flow errors
MichaelBuessemeyer 75baf8a
Merge branch 'master' of github.com:scalableminds/webknossos into mul…
MichaelBuessemeyer 34fadc2
using lodash to create deepcopy of stored layouts
MichaelBuessemeyer 6e19cc6
v1.10.1
MichaelBuessemeyer fe90c6a
Merge branch 'master' into mulitple-tracing-custom-layouts
MichaelBuessemeyer 61b5365
modified yarn.lock -> added checksum?
MichaelBuessemeyer 9ad7120
Merge branch 'mulitple-tracing-custom-layouts' of github.com:scalable…
MichaelBuessemeyer e4371ae
removed unused comment; removed useless emit
MichaelBuessemeyer c2cd24d
Update CHANGELOG.md
MichaelBuessemeyer 55c7875
Update CHANGELOG.md
MichaelBuessemeyer 0d88758
Merge branch 'master' of github.com:scalableminds/webknossos into mul…
MichaelBuessemeyer 2837206
applied requested feedback
MichaelBuessemeyer 796d697
removed lastActive from filtering layout names
MichaelBuessemeyer 55a903c
fixed linting error
MichaelBuessemeyer 1fcb25b
changed ui to indicate that layout are stored separately
MichaelBuessemeyer 41b4875
fix default layout bug
MichaelBuessemeyer 1a9e1cd
some visual tweaks
MichaelBuessemeyer 8d0429f
made the code pretty
MichaelBuessemeyer 45ab3f2
fixed typos and change toast to thrown error message
MichaelBuessemeyer 215bffd
renamed labels for layout sub menu
MichaelBuessemeyer 74fb288
fixed visual bug with the icons
MichaelBuessemeyer 1c6289a
merged master into mulitple-tracing-custom-layouts
MichaelBuessemeyer db8d6fe
removed bullet points from layout list
MichaelBuessemeyer fe5bb10
Merge branch 'master' into mulitple-tracing-custom-layouts
MichaelBuessemeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/assets/javascripts/oxalis/view/action-bar/add_new_layout_modal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// @flow | ||
|
||
import * as React from "react"; | ||
import { Input, Modal } from "antd"; | ||
|
||
type Props = { | ||
addLayout: string => void, | ||
visible: boolean, | ||
onCancel: () => void, | ||
}; | ||
|
||
type State = { | ||
value: string, | ||
}; | ||
|
||
class AddNewLayoutModal extends React.PureComponent<Props, State> { | ||
state = { | ||
value: "", | ||
}; | ||
|
||
render() { | ||
return ( | ||
<Modal | ||
title="Add a new layout" | ||
visible={this.props.visible} | ||
onOk={() => { | ||
const value = this.state.value; | ||
this.setState({ value: "" }); | ||
this.props.addLayout(value); | ||
}} | ||
onCancel={this.props.onCancel} | ||
> | ||
<Input | ||
placeholder="Layout Name" | ||
value={this.state.value} | ||
onChange={evt => { | ||
this.setState({ value: evt.target.value }); | ||
}} | ||
/> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
||
export default AddNewLayoutModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separated