diff --git a/res/app/control-panes/dashboard/clipboard/clipboard-controller.js b/res/app/control-panes/dashboard/clipboard/clipboard-controller.js index f928cd3d..90aaaa92 100644 --- a/res/app/control-panes/dashboard/clipboard/clipboard-controller.js +++ b/res/app/control-panes/dashboard/clipboard/clipboard-controller.js @@ -8,7 +8,6 @@ module.exports = function ClipboardCtrl($scope, gettext) { if (result.success) { if (result.lastData) { $scope.clipboardContent = result.lastData - console.log(result) } else { $scope.clipboardContent = gettext('No clipboard data') } diff --git a/res/app/control-panes/logs/logs-controller.js b/res/app/control-panes/logs/logs-controller.js index 26be58b5..5e8cc606 100644 --- a/res/app/control-panes/logs/logs-controller.js +++ b/res/app/control-panes/logs/logs-controller.js @@ -1,3 +1,24 @@ -module.exports = function LogsCtrl($scope) { - +module.exports = function LogsCtrl($scope, socket) { + + var filters = [] + + socket.scoped($scope).on('logcat.entry', function (entry) { + console.log(entry) + }) + + + $scope.$watch('started', function (newValue, oldValue) { + if (newValue !== oldValue) { + + if (newValue) { + $scope.control.startLogcat(filters).then(function (result) { + + }) + } else { + $scope.control.stopLogcat() + } + + } + + }); }