Skip to content

Commit 099e4be

Browse files
committed
COMPASS-3920: Remove license display code on community
1 parent 1828cfa commit 099e4be

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/app/index.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -200,27 +200,7 @@ var Application = View.extend({
200200
}
201201
};
202202

203-
/**
204-
* If we're in Compass community and the license has not been agreed, we need
205-
* to show it first and force the user to agree or disagree.
206-
*/
207-
if (process.env.HADRON_PRODUCT === 'mongodb-compass-community' && !app.preferences.agreedToLicense) {
208-
const licenseComponent = app.appRegistry.getRole('Application.License')[0].component;
209-
const licenseStore = app.appRegistry.getStore('License.Store');
210-
const licenseActions = app.appRegistry.getAction('License.Actions');
211-
212-
ReactDOM.render(React.createElement(licenseComponent), this.queryByHook('license'));
213-
214-
licenseStore.listen((state) => {
215-
if (state.isAgreed) {
216-
handleTour();
217-
}
218-
});
219-
220-
licenseActions.show();
221-
} else {
222-
handleTour();
223-
}
203+
handleTour();
224204

225205
if (process.env.NODE_ENV !== 'production') {
226206
debug('Installing "Inspect Element" context menu');

0 commit comments

Comments
 (0)