Separate device logs

This commit is contained in:
Lukasz.Zeglinski
2019-09-11 11:04:49 +02:00
parent 345ba4d8a8
commit d99a6e7a97
29 changed files with 17057 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
var _ = require('lodash')
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$location, $timeout, $window, $rootScope) {
$location, $timeout, $window, $rootScope, LogcatService) {
$scope.showScreen = true
@@ -9,7 +9,18 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.groupDevices = $scope.groupTracker.devices
$scope.$on('$locationChangeStart', function(event, next, current) {
$scope.LogcatService = LogcatService
$rootScope.LogcatService = LogcatService
})
$scope.kickDevice = function(device) {
if (Object.keys(LogcatService.deviceEntries).includes(device.serial)) {
LogcatService.deviceEntries[device.serial].allowClean = true
}
$scope.LogcatService = LogcatService
$rootScope.LogcatService = LogcatService
if (!device || !$scope.device) {
alert('No device found')