Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 acf54cffd -> 0fbaf07f3
IGNITE-843 Minor. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/0fbaf07f Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/0fbaf07f Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/0fbaf07f Branch: refs/heads/ignite-843-rc2 Commit: 0fbaf07f363213d8daa9544260321ceec122b9e4 Parents: acf54cf Author: Alexey Kuznetsov <[email protected]> Authored: Wed Feb 17 10:24:38 2016 +0700 Committer: Alexey Kuznetsov <[email protected]> Committed: Wed Feb 17 10:24:38 2016 +0700 ---------------------------------------------------------------------- modules/control-center-web/DEVNOTES.txt | 10 +++++----- .../src/main/js/controllers/igfs-controller.js | 8 +++++++- 2 files changed, 12 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/0fbaf07f/modules/control-center-web/DEVNOTES.txt ---------------------------------------------------------------------- diff --git a/modules/control-center-web/DEVNOTES.txt b/modules/control-center-web/DEVNOTES.txt index 2572d47..cd553a2 100644 --- a/modules/control-center-web/DEVNOTES.txt +++ b/modules/control-center-web/DEVNOTES.txt @@ -1,10 +1,10 @@ Ignite Web Console Instructions ====================================== -How to deploy: +How to deploy locally: -1. Install locally NodeJS using installer from site https://nodejs.org for your OS. -2. Install locally MongoDB follow instructions from site http://docs.mongodb.org/manual/installation +1. Install locally NodeJS (version >=4.x) using installer from site https://nodejs.org for your OS. +2. Install locally MongoDB (version >=3.x) follow instructions from site http://docs.mongodb.org/manual/installation 3. Checkout ignite-843-rc2 branch. 4. Change directory '$IGNITE_HOME/modules/control-center-web/src/main/js'. 5. Run "npm install" in terminal for download all dependencies. @@ -15,14 +15,14 @@ Steps 1 - 5 should be executed once. How to run console in development mode: -1. In terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin +1. Configure MongoDB to run as service or in terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin and start MongoDB by executing "mongod". 2. In new terminal change directory '$IGNITE_HOME/modules/control-center-web/src/main/js' and start application by executing "npm start". 3. In new terminal change directory '$IGNITE_HOME/modules/control-center-web/src/main/js' - and start virtual server and local changes watcher by executing "gulp watch" + and start virtual server and local changes watcher by executing "gulp watch --debug" or "gulp connect" to start virtual server only. 4. In browser open: http://localhost:8090 http://git-wip-us.apache.org/repos/asf/ignite/blob/0fbaf07f/modules/control-center-web/src/main/js/controllers/igfs-controller.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/controllers/igfs-controller.js b/modules/control-center-web/src/main/js/controllers/igfs-controller.js index de45a55..10f1cf4 100644 --- a/modules/control-center-web/src/main/js/controllers/igfs-controller.js +++ b/modules/control-center-web/src/main/js/controllers/igfs-controller.js @@ -362,10 +362,16 @@ consoleModule.controller('igfsController', [ } }; + function _igfsNames() { + return _.map($scope.igfss, function (igfs) { + return igfs.name; + }); + } + // Save IGFS with new name. $scope.cloneItem = function () { if ($scope.tableReset(true) && validate($scope.backupItem)) { - $clone.confirm($scope.backupItem.name).then(function (newName) { + $clone.confirm($scope.backupItem.name, _igfsNames()).then(function (newName) { var item = angular.copy($scope.backupItem); delete item._id;
