FS-8095 [verto_communicator] Do not reset name and email upon logout.

This commit is contained in:
Italo Rossi committed 2015-09-21 17:51:00 -03:00
1 parent 13add97426
commit bdc6c3b810
2 files changed
+7 -1

No files matched your search

@@ -47,6 +47,12 @@
data: data, data: data,
changeData: changeData, changeData: changeData,
reset: function() { reset: function() {
data.ui_connected = false;
data.ws_connected = false;
data.cur_call = 0;
data.userStatus = 'disconnected';
},
factoryReset: function() {
data.$reset(defaultSettings); data.$reset(defaultSettings);
}, },
}; };
@@ -27,7 +27,7 @@
} }
$scope.resetSettings = function() { $scope.resetSettings = function() {
storage.reset(); storage.factoryReset();
} }
} }
]); ]);