Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit 24e5093

Browse files
authored
fix: Remove broken actions from dropdown and update icon COMPASS-4500 (#142)
1 parent f4efbea commit 24e5093

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/components/sidebar-collection/sidebar-collection.jsx

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,6 @@ class SidebarCollection extends PureComponent {
3838
}
3939
}
4040

41-
/**
42-
* Import data to a collection dialog.
43-
*/
44-
onImportData = () => {
45-
const collectionName = this.getCollectionName();
46-
this.props.globalAppRegistryEmit('open-import', collectionName);
47-
}
48-
49-
/**
50-
* Export data to a collection dialog.
51-
*/
52-
onExportCollection = () => {
53-
const collectionName = this.getCollectionName();
54-
this.props.globalAppRegistryEmit('open-export', collectionName);
55-
}
56-
5741
/**
5842
* Handle duplicate view.
5943
*/
@@ -176,7 +160,7 @@ class SidebarCollection extends PureComponent {
176160
<DropdownButton
177161
bsSize="xsmall"
178162
bsStyle="link"
179-
title="&hellip;"
163+
title={<i className="fa fa-fw fa-ellipsis-h" />}
180164
className={classnames(styles['compass-sidebar-item-collection-actions'])}
181165
noCaret
182166
pullRight
@@ -199,14 +183,12 @@ class SidebarCollection extends PureComponent {
199183
<DropdownButton
200184
bsSize="xsmall"
201185
bsStyle="link"
202-
title="&hellip;"
186+
title={<i className="fa fa-fw fa-ellipsis-h" />}
203187
className={classnames(styles['compass-sidebar-item-collection-actions'])}
204188
noCaret
205189
pullRight
206190
id="collection-actions">
207191
<MenuItem eventKey="1" onClick={this.onOpenInNewTab}>Open in New Tab</MenuItem>
208-
<MenuItem eventKey="2" onClick={this.onImportData} disabled={this.isNotWritable()}>Import Data</MenuItem>
209-
<MenuItem eventKey="2" onClick={this.onExportCollection}>Export Collection</MenuItem>
210192
<MenuItem eventKey="2" onClick={this.onDrop} disabled={this.isNotWritable()}>Drop Collection</MenuItem>
211193
</DropdownButton>
212194
);

src/components/sidebar-collection/sidebar-collection.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
@compass-sidebar-active-background-color: lighten(hsl(201, 11%, 41%), 10%);
99

1010
.compass-sidebar-item-collection-actions {
11-
margin-right: 5px;
1211
color: @pw !important;
1312
visibility: hidden;
1413
}

0 commit comments

Comments
 (0)