mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
gui: Fix inadvertently always-false comparison (ref #7726)
This commit is contained in:
parent
8042bd1a54
commit
72c683aaca
@ -2877,7 +2877,7 @@ angular.module('syncthing.core')
|
||||
};
|
||||
|
||||
$scope.hasReceiveOnlyChanged = function (folderCfg) {
|
||||
if (!folderCfg || folderCfg.type !== ["receiveonly", "receiveencrypted"].indexOf(folderCfg.type) === -1) {
|
||||
if (!folderCfg || ["receiveonly", "receiveencrypted"].indexOf(folderCfg.type) === -1) {
|
||||
return false;
|
||||
}
|
||||
var counts = $scope.model[folderCfg.id];
|
||||
|
Loading…
Reference in New Issue
Block a user