mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-31 02:48:27 +00:00
ab53687c38
This fixes a regression by restoring two functions removed in commit a20d85d451fcce63d94b6d8c40de65d4db3c7bd9, but still used from the HTML template. Adjust the restored versions to access the new flag storage structure. The replacement functions selectAllSharedFolders() and selectAllUnrelatedFolders() are not functional, so this is just a quick fix to restore a working state before making the new functions actually work sensibly. Just like the respective functions for sharing device selections, give it a boolean argument instead of writing two almost identical functions. In line with the other selectAll...() functions, avoid calling angular.forEach() and iterate over the folders object directly.