Show errors in case of Duplicate adbkey

This commit is contained in:
Vishal Banthia
2016-11-23 03:11:09 +05:30
parent 20d8c35603
commit 42b55889ae
4 changed files with 27 additions and 3 deletions

View File

@@ -24,6 +24,10 @@ module.exports = function UserServiceFactory(
socket.emit('user.keys.adb.remove', key)
}
socket.on('user.keys.adb.error', function(error) {
$rootScope.$broadcast('user.keys.adb.error', error)
})
socket.on('user.keys.adb.added', function(key) {
UserService.getAdbKeys().push(key)
$rootScope.$broadcast('user.keys.adb.updated', user.adbKeys)