ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [51/52] ignite git commit: Web Console beta-3. Fixed import from database.
Date Fri, 09 Sep 2016 03:27:19 GMT
Web Console beta-3. Fixed import from database.


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

Branch: refs/heads/master
Commit: 2a117fec92d3455e53933cd3992ac73d2b2c0d3a
Parents: 769e0be
Author: Andrey Novikov <anovikov@apache.org>
Authored: Thu Sep 8 16:53:11 2016 +0700
Committer: Andrey Novikov <anovikov@apache.org>
Committed: Thu Sep 8 16:53:11 2016 +0700

----------------------------------------------------------------------
 .../web-console/frontend/controllers/domains-controller.js   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2a117fec/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 e520494..6cb3540 100644
--- a/modules/web-console/frontend/controllers/domains-controller.js
+++ b/modules/web-console/frontend/controllers/domains-controller.js
@@ -385,8 +385,10 @@ export default ['domainsController', [
         $scope.showImportDomainModal = function() {
             LegacyTable.tableReset();
 
-            FormUtils.confirmUnsavedChanges($scope.ui.inputForm.$dirty, function() {
-                if ($scope.ui.inputForm.$dirty)
+            const dirty = $scope.ui.inputForm && $scope.ui.inputForm.$dirty;
+
+            FormUtils.confirmUnsavedChanges(dirty, function() {
+                if (dirty)
                     $scope.backupItem = $scope.selectedItem ? angular.copy($scope.selectedItem)
: prepareNewItem();
 
                 const demo = $root.IgniteDemoMode;
@@ -441,7 +443,7 @@ export default ['domainsController', [
 
                                     $scope.ui.selectedJdbcDriverJar = $scope.jdbcDriverJars[0].value;
 
-                                    FormUtils.confirmUnsavedChanges($scope.ui.inputForm.$dirty,
() => {
+                                    FormUtils.confirmUnsavedChanges(dirty, () => {
                                         $scope.importDomain.action = 'connect';
                                         $scope.importDomain.tables = [];
 


Mime
View raw message