Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"mongodb": "^2.2.8",
"mongodb-collection-model": "^0.3.0",
"mongodb-connection-model": "^6.2.0",
"mongodb-data-service": "^1.9.0",
"mongodb-data-service": "^2.0.0",
"mongodb-database-model": "^0.1.2",
"mongodb-explain-plan-model": "^0.2.1",
"mongodb-extended-json": "^1.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class IndexHeader extends React.Component {
<IndexHeaderColumn hook="th-size" name="Size" sortOrder={this.state.sortOrder} />
<IndexHeaderColumn hook="th-usage" name="Usage" sortOrder={this.state.sortOrder} />
<IndexHeaderColumn hook="th-properties" name="Properties" sortOrder={this.state.sortOrder} />
{app.preferences.isFeatureEnabled('indexDDL') ?
{app.dataService.isWritable() ?
<IndexHeaderColumn hook="th-drop" name="Drop" sortOrder={this.state.sortOrder}/>
: null}
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/internal-packages/indexes/lib/component/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Index extends React.Component {
relativeSize={this.props.index.relativeSize} />
<UsageColumn usage={this.props.index.usageCount} since={this.props.index.usageSince} />
<PropertyColumn index={this.props.index} />
{app.preferences.isFeatureEnabled('indexDDL') ?
{app.dataService.isWritable() ?
<DropColumn indexName={this.props.index.name} />
: null}
</tr>
Expand Down
4 changes: 1 addition & 3 deletions src/internal-packages/indexes/lib/component/indexes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ class Indexes extends React.Component {
<div className="flexbox-fix"></div>
<div className="column-container">
<div className="column main">
{app.preferences.isFeatureEnabled('indexDDL') ?
<CreateIndexButton />
: null}
{app.dataService.isWritable() ? <CreateIndexButton /> : null}
<table>
<IndexHeader />
<IndexList />
Expand Down