From: Italo Rossi Date: Mon, 21 Sep 2015 20:51:00 +0000 (-0300) Subject: FS-8095 [verto_communicator] Do not reset name and email upon logout. X-Git-Tag: v1.6.2~1^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdc6c3b810d5fa4ad186785fa7d9cf80f1e6f8d0;p=thirdparty%2Ffreeswitch.git FS-8095 [verto_communicator] Do not reset name and email upon logout. --- 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(); } } ]);