This commit is contained in:
parent
127c891526
commit
81f9a81c7d
@ -1506,13 +1506,13 @@ angular.module('syncthing.core')
|
|||||||
$scope.currentFolder.path = pathJoin($scope.config.options.defaultFolderPath, newvalue);
|
$scope.currentFolder.path = pathJoin($scope.config.options.defaultFolderPath, newvalue);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$watch('currentFolder.fsWatcherEnabled', function (newvalue) {
|
$scope.fsWatcherToggled = function () {
|
||||||
if (newvalue) {
|
if ($scope.currentFolder.fsWatcherEnabled) {
|
||||||
$scope.currentFolder.rescanIntervalS = 3600;
|
$scope.currentFolder.rescanIntervalS = 3600;
|
||||||
} else {
|
} else {
|
||||||
$scope.currentFolder.rescanIntervalS = 60;
|
$scope.currentFolder.rescanIntervalS = 60;
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
$scope.loadFormIntoScope = function (form) {
|
$scope.loadFormIntoScope = function (form) {
|
||||||
console.log('loadFormIntoScope',form.$name);
|
console.log('loadFormIntoScope',form.$name);
|
||||||
|
|||||||
@ -139,7 +139,7 @@
|
|||||||
<a href="https://docs.syncthing.net/users/syncing.html#scanning" target="_blank"><span class="fa fa-book"></span> <span translate>Help</span></a></br>
|
<a href="https://docs.syncthing.net/users/syncing.html#scanning" target="_blank"><span class="fa fa-book"></span> <span translate>Help</span></a></br>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="checkbox" ng-model="currentFolder.fsWatcherEnabled" tooltip data-original-title="{{'Use notifications from the filesystem to detect changed items.' | translate }}"> <span translate>Watch for Changes</span>
|
<input type="checkbox" ng-model="currentFolder.fsWatcherEnabled" ng-change="fsWatcherToggled()" tooltip data-original-title="{{'Use notifications from the filesystem to detect changed items.' | translate }}"> <span translate>Watch for Changes</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user