mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 02:53:27 +02:00
Added Restart Device functionality.
Added device status to Fatal Message modal. Added auto-reconnect to Fatal Message modal.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module.exports = function ($scope, gettext, $filter) {
|
||||
|
||||
$scope.reboot = function (device) {
|
||||
$scope.reboot = function () {
|
||||
var config = {
|
||||
rebootEnabled: true
|
||||
}
|
||||
@@ -8,8 +8,9 @@ module.exports = function ($scope, gettext, $filter) {
|
||||
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.')))) {
|
||||
console.log('reboot')
|
||||
|
||||
$scope.control.reboot().then(function (result) {
|
||||
console.error(result)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user