Files
stf-DeviceFarmer/res/app/control-panes/advanced/maintenance/maintenance-controller.js
Gunther Brunner aebeb4d357 Added Restart Device functionality.
Added device status to Fatal Message modal.
Added auto-reconnect to Fatal Message modal.
2014-06-19 21:13:20 +09:00

19 lines
449 B
JavaScript

module.exports = function ($scope, gettext, $filter) {
$scope.reboot = function () {
var config = {
rebootEnabled: true
}
if (config.rebootEnabled) {
if (confirm($filter('translate')(
gettext('Are you sure you want to reboot this device? \nThe device will be unavailable for a moment.')))) {
$scope.control.reboot().then(function (result) {
console.error(result)
})
}
}
}
}