From 73f08ac8d8f4d2995cac1eb5f58e9879c36f305f Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Wed, 13 Jan 2016 19:30:14 +0530 Subject: cleaned up server add interface - created an add button Former-commit-id: 95e087a6a24c9a54bcfd2f81a0884877d7ec322d --- www/js/DataModel.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index c438e06a..a0ff20d9 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -66,6 +66,8 @@ angular.module('zmApp.controllers') }; + var defaultLoginData = angular.copy(loginData); + var configParams = { @@ -188,7 +190,13 @@ angular.module('zmApp.controllers') // the ZM authors fix this and streamline the access of images // from APIs, I don't have an option - // FIXME: Move all of this into a neat JSON object + + // used when an empty server profile is created + getDefaultLoginObject: function() + { + return defaultLoginData; + }, + init: function () { // console.log("****** DATAMODEL INIT SERVICE CALLED ********"); -- cgit v1.2.3