Skip to content

Commit

Permalink
push alignview onclick
Browse files Browse the repository at this point in the history
  • Loading branch information
chgibb committed Jul 22, 2019
1 parent d932fb2 commit 74452cd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/req/renderer/views/toolBarView/toolBarView.tsx
Expand Up @@ -18,6 +18,7 @@ import {PHATView} from "../../phatView";

import {ToolBarTab, ToolBarTabs} from "./containers/toolBarTabs/toolBarTabs";
import {tabInfo} from "./tabInfo";
import { AlignView } from '../../AlignRenderer/AlignView';


export interface ToolBarViewState
Expand Down Expand Up @@ -94,6 +95,23 @@ export class ToolBarView extends React.Component<ToolBarViewProps,ToolBarViewSta
<img
src={tabInfo["Align"].imgURI()}
className={`${activeHover} ${activeHoverButton} ${toolBarButton}`}
onClick={()=>{
this.setState({
views : this.state.views.concat([
{
label : "Alignment",
refKey : "Align",
body : (props : ToolBarViewProps) => (
<AlignView
fastqs={props.fastqs}
fastas={props.fastas}
operations={props.operations}
/>
)
}
])
})
}}
/>
</Grid>
<Grid item>
Expand Down

0 comments on commit 74452cd

Please sign in to comment.