mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 13:25:25 +02:00
26 lines
458 B
JavaScript
26 lines
458 B
JavaScript
module.exports = function LogsCtrl($scope, LogcatService) {
|
|
|
|
var filters = []
|
|
|
|
$scope.logEntries = LogcatService.entries
|
|
|
|
|
|
$scope.$watch('started', function (newValue, oldValue) {
|
|
if (newValue !== oldValue) {
|
|
|
|
if (newValue) {
|
|
$scope.control.startLogcat(filters).then(function (result) {
|
|
|
|
})
|
|
} else {
|
|
$scope.control.stopLogcat()
|
|
}
|
|
|
|
}
|
|
})
|
|
|
|
$scope.clear = function () {
|
|
LogcatService.clear()
|
|
}
|
|
}
|