mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
29 lines
696 B
JavaScript
29 lines
696 B
JavaScript
module.exports =
|
|
function AdbKeysCtrl($scope, $http, UserService, AddAdbKeyModalService,
|
|
FatalMessageService) {
|
|
$scope.adbKeys = []
|
|
|
|
function updateKeys() {
|
|
$scope.adbKeys = UserService.getAdbKeys()
|
|
}
|
|
|
|
$scope.removeKey = function (key) {
|
|
UserService.removeAdbKey(key)
|
|
}
|
|
|
|
$scope.$on('user.keys.adb.updated', updateKeys)
|
|
updateKeys()
|
|
|
|
//AddAdbKeyModalService.open({
|
|
// fingerprint: '9a:12:5b:14:e3:3e:c9:d3:59:be:4f:16:0d:4d:cd:26',
|
|
// title: 'a12907@PC-5954.local'
|
|
//})
|
|
|
|
//FatalMessageService.open({
|
|
// enhancedName: 'dev',
|
|
// enhancedStatePassive: 'online',
|
|
// likelyLeaveReason: 'Not good enough'
|
|
//})
|
|
|
|
|
|
}
|