Files
stf/res/app/settings/adb-keys/adb-keys-controller.js
Gunther Brunner 9f0affaafd Add ADB Key modal.
2014-09-29 19:57:30 +09:00

25 lines
582 B
JavaScript

module.exports = function AdbKeysCtrl($scope, AddAdbKeyModalService) {
//AddAdbKeyModalService.open({
// title: 'PC1264',
// fingerprint: 'bb:86:60:39:d7:a2:e3:09:93:09:cc:f6:e8:37:99:3f'
//})
$scope.adbKeys = [
{
title: 'PC1264',
fingerprint: 'bb:86:60:39:d7:a2:e3:09:93:09:cc:f6:e8:37:99:3f'
},
{
title: 'Mobile mac',
fingerprint: '97:ca:ae:fa:09:0b:c4:fe:22:94:7d:b2:be:77:66:a1'
}
]
$scope.removeKey = function (key) {
console.log('Remove key', key)
$scope.adbKeys.splice($scope.adbKeys.indexOf(key), 1)
}
}