Skip to content

Commit

Permalink
feat(client): add dmn toolbar actions
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme authored and barmac committed Jan 17, 2019
1 parent e922050 commit 2fe9eb3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/app/tabs/bpmn/BpmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class BpmnEditor extends CachedComponent {
<Button onClick={ this.saveDiagram }>Save Diagram</Button>
</Fill>

<Fill name="toolbar" group="commandstack">
<Fill name="toolbar" group="command">
<Button disabled={ !this.state.undo } onClick={ this.undo }>Undo</Button>
<Button disabled={ !this.state.redo } onClick={ this.redo }>Redo</Button>
</Fill>
Expand Down
11 changes: 10 additions & 1 deletion client/src/app/tabs/dmn/DmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,20 @@ class DmnEditor extends CachedComponent {
return (
<div className={ css.DmnEditor }>

<Fill name="toolbar">
<Fill name="toolbar" group="command">
<Button disabled={ !this.state.undo } onClick={ this.undo }>Undo</Button>
<Button disabled={ !this.state.redo } onClick={ this.redo }>Redo</Button>
</Fill>

<Fill name="toolbar" group="image-export">
<Button onClick={ () => console.log('Export Image') }>Export Image</Button>
</Fill>

<Fill name="toolbar" group="deploy">
<Button>Deploy Current Diagram</Button>
<Button>Configure Deployment Endpoint</Button>
</Fill>

<div className="diagram" ref={ this.ref }></div>
</div>
);
Expand Down

0 comments on commit 2fe9eb3

Please sign in to comment.