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

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

View File

@ -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);
}, },
}; };

View File

@ -27,7 +27,7 @@
} }
$scope.resetSettings = function() { $scope.resetSettings = function() {
storage.reset(); storage.factoryReset();
} }
} }
]); ]);