Skip to content

Commit

Permalink
feat(client): more toolbar actions
Browse files Browse the repository at this point in the history
Related to #866
  • Loading branch information
philippfromme committed Aug 31, 2018
1 parent 24328fe commit 7756887
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/tabs/bpmn/BpmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ export class BpmnEditor extends CachedComponent {
return (
<div className={ css.BpmnEditor }>

<Fill name="toolbar" group="general">
<Fill name="toolbar" group="save">
<Button onClick={ this.saveDiagram }>Save Diagram</Button>
<Button onClick={ this.saveDiagram }>Save Diagram As</Button>
</Fill>

<Fill name="toolbar" group="command">
Expand Down
5 changes: 5 additions & 0 deletions client/src/app/tabs/dmn/DmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ class DmnEditor extends CachedComponent {
return (
<div className={ css.DmnEditor }>

<Fill name="toolbar" group="save">
<Button onClick={ () => {} }>Save Diagram</Button>
<Button onClick={ () => {} }>Save Diagram As</Button>
</Fill>

<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>
Expand Down

0 comments on commit 7756887

Please sign in to comment.