mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -3,8 +3,8 @@ module.exports = function DeviceSettingsCtrl($scope, $timeout) {
|
||||
|
||||
function getWifiStatus() {
|
||||
if ($scope.control) {
|
||||
$scope.control.getWifiStatus().then(function (result) {
|
||||
$scope.$apply(function () {
|
||||
$scope.control.getWifiStatus().then(function(result) {
|
||||
$scope.$apply(function() {
|
||||
$scope.wifiEnabled = (result.lastData === 'wifi_enabled')
|
||||
})
|
||||
})
|
||||
@@ -12,14 +12,14 @@ module.exports = function DeviceSettingsCtrl($scope, $timeout) {
|
||||
}
|
||||
getWifiStatus()
|
||||
|
||||
$scope.toggleWifi = function (enable) {
|
||||
$scope.toggleWifi = function(enable) {
|
||||
if ($scope.control) {
|
||||
$scope.control.setWifiEnabled(enable)
|
||||
$timeout(getWifiStatus, 2500)
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$watch('ringerMode', function (newValue, oldValue) {
|
||||
$scope.$watch('ringerMode', function(newValue, oldValue) {
|
||||
if (oldValue) {
|
||||
if ($scope.control) {
|
||||
$scope.control.setRingerMode(newValue)
|
||||
@@ -29,8 +29,8 @@ module.exports = function DeviceSettingsCtrl($scope, $timeout) {
|
||||
|
||||
function getRingerMode() {
|
||||
if ($scope.control) {
|
||||
$scope.control.getRingerMode().then(function (result) {
|
||||
$scope.$apply(function () {
|
||||
$scope.control.getRingerMode().then(function(result) {
|
||||
$scope.$apply(function() {
|
||||
$scope.ringerMode = result.body
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user