ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [48/50] [abbrv] ignite git commit: Fixed package name after refresh.
Date Thu, 08 Sep 2016 04:47:05 GMT
Fixed package name after refresh.


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

Branch: refs/heads/ignite-3629
Commit: 2b8bdb78ca8e2dbdba3c154895057e1fb3b22496
Parents: 594f064
Author: Andrey Novikov <anovikov@apache.org>
Authored: Tue Sep 6 15:12:53 2016 +0700
Committer: Andrey Novikov <anovikov@apache.org>
Committed: Tue Sep 6 15:12:53 2016 +0700

----------------------------------------------------------------------
 .../web-console/frontend/controllers/domains-controller.js  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2b8bdb78/modules/web-console/frontend/controllers/domains-controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/controllers/domains-controller.js b/modules/web-console/frontend/controllers/domains-controller.js
index c1f6c91..143b57b 100644
--- a/modules/web-console/frontend/controllers/domains-controller.js
+++ b/modules/web-console/frontend/controllers/domains-controller.js
@@ -47,8 +47,13 @@ export default ['domainsController', [
             return name ? name.replace(/[^A-Za-z_0-9/.]+/g, '_') : 'org';
         };
 
-        $scope.ui.packageNameUserInput = $scope.ui.packageName =
-            _toJavaPackage($root.user.email.replace('@', '.').split('.').reverse().join('.')
+ '.model');
+        $root.$on('user', (event, user) => {
+            if ($scope.ui.packageName)
+                $scope.ui.packageNameUserInput = $scope.ui.packageName;
+
+            $scope.ui.packageName = _toJavaPackage(user.email.replace('@', '.').split('.').reverse().join('.')
+ '.model');
+        });
+
         $scope.ui.builtinKeys = true;
         $scope.ui.usePrimitives = true;
         $scope.ui.generateAliases = true;


Mime
View raw message