mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 13:25:17 +02:00
Added Restart Device button UI.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = function ($scope, gettext, $filter) {
|
||||
|
||||
$scope.reboot = function (device) {
|
||||
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.')))) {
|
||||
console.log('reboot')
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user