ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: IGNITE-843 Fixed project structure file duplicates.
Date Fri, 12 Feb 2016 09:27:35 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 f44993eff -> 03916ab1c


IGNITE-843 Fixed project structure file duplicates.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/03916ab1
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/03916ab1
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/03916ab1

Branch: refs/heads/ignite-843-rc2
Commit: 03916ab1c829015cc8e6c793812abb855046156b
Parents: f44993e
Author: Andrey <anovikov@gridgain.com>
Authored: Fri Feb 12 16:27:42 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Fri Feb 12 16:27:42 2016 +0700

----------------------------------------------------------------------
 .../states/configuration/summary/summary.controller.js       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/03916ab1/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
b/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
index 1e487a3..34cde53 100644
--- a/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
+++ b/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
@@ -166,12 +166,12 @@ export default [
         function addClass(fullClsName) {
             const path = fullClsName.split('.');
 
-            const shortClsName = path.pop() + '.java';
-
             const folder = getOrCreateFolder(javaFolder, path);
 
-            if (!_.find(folder.children, {type: 'file', name: shortClsName}))
-                folder.children.push({type: 'file', name: shortClsName});
+            const leaf = {type: 'file', name: path.pop() + '.java'};
+
+            if (!_.find(folder.children, leaf))
+                folder.children.push(leaf);
         }
 
         $scope.selectItem = (cluster) => {


Mime
View raw message