Skip to content

Commit

Permalink
feat(client): turn deploy button into dropdown button with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Sep 4, 2018
1 parent 05cf31b commit 9a7d809
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
10 changes: 8 additions & 2 deletions client/src/app/tabs/bpmn/BpmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,15 @@ export class BpmnEditor extends CachedComponent {
</Fill>

<Fill name="toolbar" group="deploy">
<Button title="Deploy diagram">
<DropdownButton title="Deploy Current Diagram" items={ [{
text: 'Deploy Current Diagram',
onClick: () => console.log('Deploy Current Diagram')
}, {
text: 'Configure Deployment Endpoint',
onClick: () => console.log('Configure Deployment Endpoint')
}] }>
<Icon name="deploy" />
</Button>
</DropdownButton>
</Fill>

<div
Expand Down
16 changes: 13 additions & 3 deletions client/src/app/tabs/dmn/DmnEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import React from 'react';

import { Fill } from '../../slot-fill';

import { Button } from '../../primitives';
import {
DropdownButton,
Icon
} from '../../primitives';

import {
WithCache,
Expand Down Expand Up @@ -299,8 +302,15 @@ class DmnEditor extends CachedComponent {
<div className={ css.DmnEditor }>

<Fill name="toolbar" group="deploy">
<Button>Deploy Current Diagram</Button>
<Button>Configure Deployment Endpoint</Button>
<DropdownButton title="Deploy Current Diagram" items={ [{
text: 'Deploy Current Diagram',
onClick: () => console.log('Deploy Current Diagram')
}, {
text: 'Configure Deployment Endpoint',
onClick: () => console.log('Configure Deployment Endpoint')
}] }>
<Icon name="deploy" />
</DropdownButton>
</Fill>

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

0 comments on commit 9a7d809

Please sign in to comment.