Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -1,15 +1,16 @@
module.exports = function ($scope, gettext, $filter) {
module.exports = function($scope, gettext, $filter) {
$scope.reboot = function () {
$scope.reboot = function() {
var config = {
rebootEnabled: true
}
/* eslint no-console: 0 */
if (config.rebootEnabled) {
var line1 = $filter('translate')(gettext('Are you sure you want to reboot this device?'))
var line2 = $filter('translate')(gettext('The device will be unavailable for a moment.'))
if (confirm(line1 + '\n' + line2)) {
$scope.control.reboot().then(function (result) {
$scope.control.reboot().then(function(result) {
console.error(result)
})
}