From bdc6c3b810d5fa4ad186785fa7d9cf80f1e6f8d0 Mon Sep 17 00:00:00 2001 From: Italo Rossi Date: Mon, 21 Sep 2015 17:51:00 -0300 Subject: [PATCH] FS-8095 [verto_communicator] Do not reset name and email upon logout. --- .../src/storageService/services/storage.js | 6 ++++++ .../vertoControllers/controllers/ModalSettingsController.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/html5/verto/verto_communicator/src/storageService/services/storage.js b/html5/verto/verto_communicator/src/storageService/services/storage.js index 69e7894f79..7120db18de 100644 --- a/html5/verto/verto_communicator/src/storageService/services/storage.js +++ b/html5/verto/verto_communicator/src/storageService/services/storage.js @@ -47,6 +47,12 @@ data: data, changeData: changeData, reset: function() { + data.ui_connected = false; + data.ws_connected = false; + data.cur_call = 0; + data.userStatus = 'disconnected'; + }, + factoryReset: function() { data.$reset(defaultSettings); }, }; diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js index 4d2ba0d442..9324fa2f37 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js @@ -27,7 +27,7 @@ } $scope.resetSettings = function() { - storage.reset(); + storage.factoryReset(); } } ]);