Skip to content

Commit 7c6db0c

Browse files
committed
Merge pull request #111 from bgw/edit-menu/add-class
Add an 'Add a Class' entry to the edit menu
2 parents ede7a0e + 31b73cc commit 7c6db0c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ export default class Browser extends DashboardView {
561561
onPointerClick={this.handlePointerClick.bind(this)}
562562
setRelation={this.setRelation.bind(this)}
563563
onAddColumn={this.showAddColumn.bind(this)}
564-
onAddRow={this.addRow.bind(this)} />
564+
onAddRow={this.addRow.bind(this)}
565+
onAddClass={this.showCreateClass.bind(this)} />
565566
);
566567
}
567568
}

src/dashboard/Data/Browser/BrowserToolbar.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ let BrowserToolbar = ({
3030
onFilterChange,
3131
onAddColumn,
3232
onAddRow,
33+
onAddClass,
3334
onExport,
3435
onRemoveColumn,
3536
onDeleteRows,
@@ -78,6 +79,7 @@ let BrowserToolbar = ({
7879
<BrowserMenu title='Edit' icon='edit-solid'>
7980
<MenuItem text='Add a row' onClick={onAddRow} />
8081
<MenuItem text='Add a column' onClick={onAddColumn} />
82+
<MenuItem text='Add a class' onClick={onAddClass} />
8183
<Separator />
8284
<MenuItem
8385
disabled={selectionLength === 0}

0 commit comments

Comments
 (0)