From b9c58df13788fd7aec1a1e3a91d76beab5d8f01b Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 22 Nov 2016 14:06:58 -0400 Subject: don't auto save profile if its empty --- www/js/LoginCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index 2cf490e3..571c4d37 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -7,7 +7,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r $scope.openMenu = function() { - saveItems(false); + if ($scope.loginData.serverName) + saveItems(false); $ionicSideMenuDelegate.toggleLeft(); }; -- cgit v1.2.3