sets defaults for create forms

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/da5ec0a1
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/da5ec0a1
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/da5ec0a1

Branch: refs/heads/psql
Commit: da5ec0a1d9969cebeb08b9de59abf46cce5cdc2e
Parents: 4e95ff0
Author: Jeremy Mitchell <mitchell...@gmail.com>
Authored: Thu Oct 13 14:22:22 2016 -0600
Committer: Jeremy Mitchell <mitchell...@gmail.com>
Committed: Thu Oct 13 14:22:22 2016 -0600

----------------------------------------------------------------------
 .../app/src/modules/private/admin/cdns/new/index.js  |  5 ++++-
 .../private/configure/deliveryServices/new/index.js  | 15 ++++++++++++++-
 .../modules/private/configure/servers/new/index.js   |  4 +++-
 3 files changed, 21 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/da5ec0a1/traffic_ops/experimental/ui/app/src/modules/private/admin/cdns/new/index.js
----------------------------------------------------------------------
diff --git 
a/traffic_ops/experimental/ui/app/src/modules/private/admin/cdns/new/index.js 
b/traffic_ops/experimental/ui/app/src/modules/private/admin/cdns/new/index.js
index 93b4730..a84b996 100644
--- 
a/traffic_ops/experimental/ui/app/src/modules/private/admin/cdns/new/index.js
+++ 
b/traffic_ops/experimental/ui/app/src/modules/private/admin/cdns/new/index.js
@@ -9,7 +9,10 @@ module.exports = 
angular.module('trafficOps.private.admin.cdns.new', [])
                         controller: 'FormNewCDNController',
                         resolve: {
                             cdn: function() {
-                                return {};
+                                return {
+                                    dnssecEnabled: false
+                                };
+
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/da5ec0a1/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/new/index.js
----------------------------------------------------------------------
diff --git 
a/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/new/index.js
 
b/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/new/index.js
index 5dc2a90..cab823e 100644
--- 
a/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/new/index.js
+++ 
b/traffic_ops/experimental/ui/app/src/modules/private/configure/deliveryServices/new/index.js
@@ -9,7 +9,20 @@ module.exports = 
angular.module('trafficOps.private.configure.deliveryServices.n
                         controller: 'FormNewDeliveryServiceController',
                         resolve: {
                             deliveryService: function() {
-                                return {};
+                                return {
+                                    active: false,
+                                    signed: false,
+                                    qstringIgnore: "0",
+                                    dscp: "0",
+                                    geoLimit: "0",
+                                    geoProvider: "0",
+                                    initialDispersion: "1",
+                                    ipv6RoutingEnabled: false,
+                                    rangeRequestHandling: "0",
+                                    multiSiteOrigin: false,
+                                    regionalGeoBlocking: false,
+                                    logsEnabled: false
+                                };
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/da5ec0a1/traffic_ops/experimental/ui/app/src/modules/private/configure/servers/new/index.js
----------------------------------------------------------------------
diff --git 
a/traffic_ops/experimental/ui/app/src/modules/private/configure/servers/new/index.js
 
b/traffic_ops/experimental/ui/app/src/modules/private/configure/servers/new/index.js
index 17c1e88..0361a52 100644
--- 
a/traffic_ops/experimental/ui/app/src/modules/private/configure/servers/new/index.js
+++ 
b/traffic_ops/experimental/ui/app/src/modules/private/configure/servers/new/index.js
@@ -9,7 +9,9 @@ module.exports = 
angular.module('trafficOps.private.configure.servers.new', [])
                         controller: 'FormNewServerController',
                         resolve: {
                             server: function() {
-                                return {};
+                                return {
+                                    updPending: false
+                                };
                             }
                         }
                     }

Reply via email to