diff --git a/client/imports/views/layouts/navigation/navigation.html b/client/imports/views/layouts/navigation/navigation.html index bca356a9766cabf7810e06a0f5a627947f345ff8..5d5cc162e8dac75d8026af1ec2d521ba3efc2ab0 100644 --- a/client/imports/views/layouts/navigation/navigation.html +++ b/client/imports/views/layouts/navigation/navigation.html @@ -124,7 +124,8 @@
  • - Schema Analyzer diff --git a/client/imports/views/layouts/navigation/navigation.js b/client/imports/views/layouts/navigation/navigation.js index d20209bf949d52973c3a83a607b801c9f234177c..c4eff97dea3015d9a167c84c63ffddac87258ce3 100644 --- a/client/imports/views/layouts/navigation/navigation.js +++ b/client/imports/views/layouts/navigation/navigation.js @@ -6,6 +6,7 @@ import {Session} from "meteor/session"; import {FlowRouter} from "meteor/kadira:flow-router"; import {Connections} from "/lib/imports/collections/connections"; import Helper from "/client/imports/helper"; +import Enums from "/lib/imports/enums"; import {connect} from "/client/imports/views/layouts/top_navbar/connections/connections"; import {initializeForm, resetForm} from "./add_collection/add_collection"; import {resetForm as resetCappedForm} from "./convert_capped_collection/convert_to_capped"; @@ -120,6 +121,23 @@ export const renderCollectionNames = function () { }); }; +const showMongoBinaryInfo = function () { + if (!localStorage.getItem(Enums.LOCAL_STORAGE_KEYS.MONGO_BINARY_INFO)) { + swal({ + title: "Mongo Binary", + text: "Mongo executable to be used on shell and schema analyzer is configurable, you can change it from Settings", + type: "info", + html: true, + confirmButtonColor: "#18A689", + confirmButtonText: "Cool, don't show again!" + }, function (isConfirm) { + if (isConfirm) { + localStorage.setItem(Enums.LOCAL_STORAGE_KEYS.MONGO_BINARY_INFO, "true"); + } + }); + } +}; + Template.navigation.events({ 'click #anchorShell'(e) { e.preventDefault(); @@ -131,6 +149,11 @@ Template.navigation.events({ } FlowRouter.go('/shell'); + showMongoBinaryInfo(); + }, + + 'click #anchorSchemaAnalyzer'() { + showMongoBinaryInfo(); }, 'click #anchorDatabaseDumpRestore'(e) { diff --git a/client/imports/views/pages/mc_shell/mc_shell.js b/client/imports/views/pages/mc_shell/mc_shell.js index 2b25d084e61bce7b7aa49562321b2bae33a10566..d78d137b880d7f3d5fa665931989ddb1059e7ee2 100644 --- a/client/imports/views/pages/mc_shell/mc_shell.js +++ b/client/imports/views/pages/mc_shell/mc_shell.js @@ -160,8 +160,8 @@ const initializeCommandCodeMirror = function () { let regex = new RegExp('^' + curWord, 'i'); return { list: (!curWord ? list : list.filter(function (item) { - return item.match(regex); - })), + return item.match(regex); + })), from: CodeMirror.Pos(cursor.line, start), to: CodeMirror.Pos(cursor.line, end) }; diff --git a/client/imports/views/pages/settings/settings.html b/client/imports/views/pages/settings/settings.html index 4d7bd7b88691378cb48da63e2c728cd153ed6f1d..27dd07fe3e1a491b2f7f4f788a10d73f02480a7a 100644 --- a/client/imports/views/pages/settings/settings.html +++ b/client/imports/views/pages/settings/settings.html @@ -167,6 +167,17 @@ +
    + +
    + + + By default Mongoclient uses an internal Mongo binary regarding to your OS, you can assign another binary with this setting + +
    +
    +