mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
gui: Semicolons (#7597)
This commit is contained in:
parent
f90870b99f
commit
f09dcb98eb
@ -42,7 +42,7 @@ angular.module('syncthing.core')
|
||||
$scope.pendingFolders = {};
|
||||
$scope.progress = {};
|
||||
$scope.version = {};
|
||||
$scope.needed = {}
|
||||
$scope.needed = {};
|
||||
$scope.neededFolder = '';
|
||||
$scope.failed = {};
|
||||
$scope.localChanged = {};
|
||||
@ -673,7 +673,7 @@ angular.module('syncthing.core')
|
||||
console.log("refreshNeed", $scope.neededFolder, data);
|
||||
parseNeeded(data);
|
||||
}).error($scope.emitHTTPError);
|
||||
}
|
||||
};
|
||||
|
||||
function needAction(file) {
|
||||
var fDelete = 4096;
|
||||
@ -1010,7 +1010,7 @@ angular.module('syncthing.core')
|
||||
if (days > 31) {
|
||||
return '> 1 month';
|
||||
}
|
||||
res.push('' + days + 'd')
|
||||
res.push('' + days + 'd');
|
||||
seconds = seconds % 86400;
|
||||
}
|
||||
|
||||
@ -1018,7 +1018,7 @@ angular.module('syncthing.core')
|
||||
var hours = 0;
|
||||
if (seconds > 3600) {
|
||||
hours = Math.floor(seconds / 3600);
|
||||
res.push('' + hours + 'h')
|
||||
res.push('' + hours + 'h');
|
||||
seconds = seconds % 3600;
|
||||
}
|
||||
|
||||
@ -1759,7 +1759,7 @@ angular.module('syncthing.core')
|
||||
};
|
||||
$scope.config.devices = deviceList($scope.devices);
|
||||
$scope.saveConfig();
|
||||
}
|
||||
};
|
||||
|
||||
$scope.isAtleastOneDevicePausedStateSetTo = function (pause) {
|
||||
for (var id in $scope.devices) {
|
||||
@ -1768,8 +1768,8 @@ angular.module('syncthing.core')
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
$scope.errorList = function () {
|
||||
if (!$scope.errors) {
|
||||
@ -2779,7 +2779,7 @@ angular.module('syncthing.core')
|
||||
var time = $filter('date')(status.when, "HH:mm:ss")
|
||||
var err = status.error.replace(/.+: /, '');
|
||||
return err + " (" + time + ")";
|
||||
}
|
||||
};
|
||||
|
||||
$scope.setCrashReportingEnabled = function (enabled) {
|
||||
$scope.config.options.crashReportingEnabled = enabled;
|
||||
@ -2791,7 +2791,7 @@ angular.module('syncthing.core')
|
||||
(address.indexOf('/') == 0 ||
|
||||
address.indexOf('unix://') == 0 ||
|
||||
address.indexOf('unixs://') == 0);
|
||||
}
|
||||
};
|
||||
})
|
||||
.directive('shareTemplate', function () {
|
||||
return {
|
||||
|
@ -95,7 +95,7 @@ namespace Device {
|
||||
|
||||
export function recalcCompletion(d: Device) {
|
||||
if (!d || !d.completion || !d.folders) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
var total = 0, needed = 0, deletes = 0, items = 0;
|
||||
d.folders.forEach(folder => {
|
||||
@ -123,4 +123,4 @@ namespace Device {
|
||||
}
|
||||
}
|
||||
}
|
||||
export default Device;
|
||||
export default Device;
|
||||
|
Loading…
Reference in New Issue
Block a user