Added Restart Device button UI.

This commit is contained in:
Gunther Brunner
2014-06-19 20:10:46 +09:00
parent 3f2ddd7c74
commit 694d621794
7 changed files with 59 additions and 5 deletions

View File

@@ -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')
}
}
}
}