{"action":"created","comment":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/231441996","pull_request_review_id":172411876,"id":231441996,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTQ0MTk5Ng==","diff_hunk":"@@ -1694,6 +1708,20 @@ angular.module('syncthing.core')\n             $scope.editFolderModal();\n         };\n \n+        $scope.selectAllDevices = function() {\n+            var devices = $scope.otherDevices();\n+            for (var i = 0; i < devices.length; i++){\n+                $scope.currentFolder.selectedDevices[devices[i].deviceID] = true;\n+            }\n+        };\n+\n+        $scope.deSelectAllDevices = function() {\n+            var devices = $scope.otherDevices();\n+            for (var i = 0; i < devices.length; i++){\n+                $scope.currentFolder.selectedDevices[devices[i].deviceID] = false;\n+            }\n+        };","path":"gui/default/syncthing/core/syncthingController.js","position":37,"original_position":37,"commit_id":"84d9496e16a1eaa2dce1e1a07330b7021c931dc5","original_commit_id":"84d9496e16a1eaa2dce1e1a07330b7021c931dc5","user":{"login":"AudriusButkevicius","id":1144861,"node_id":"MDQ6VXNlcjExNDQ4NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1144861?v=4","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"body":"Ditto about having a single function.","created_at":"2018-11-07T09:57:31Z","updated_at":"2018-11-07T09:57:31Z","html_url":"https://github.com/syncthing/syncthing/pull/5307#discussion_r231441996","pull_request_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5307","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/231441996"},"html":{"href":"https://github.com/syncthing/syncthing/pull/5307#discussion_r231441996"},"pull_request":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5307"}}},"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/5307","id":228122918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTIyOTE4","html_url":"https://github.com/syncthing/syncthing/pull/5307","diff_url":"https://github.com/syncthing/syncthing/pull/5307.diff","patch_url":"https://github.com/syncthing/syncthing/pull/5307.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/5307","number":5307,"state":"closed","locked":false,"title":"gui: 'Select/Deselect All' tick box when adding new folder/device or editing folder/device(#fixes 4000)","user":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"body":"### Purpose\r\n\r\nTo allow **selecting or if all selected let deselecting all tick boxes** (toggle) when adding new folder (`Add Folder`), new device (`Add Remote Device`) or using `Edit` button on folder (under 'Folders') and device (under 'Remote Devices').\r\n\r\n### Screenshots\r\n\r\n- **`Select All`**\r\n\r\n<img width=\"726\" alt=\"screen shot 2018-11-04 at 15 51 55\" src=\"https://user-images.githubusercontent.com/29825419/47964344-98b74600-e030-11e8-8e81-5ff0c3f67abe.png\">\r\n\r\n- **`Deselect All`**\r\n\r\n<img width=\"713\" alt=\"screen shot 2018-11-04 at 15 52 01\" src=\"https://user-images.githubusercontent.com/29825419/47964345-98b74600-e030-11e8-8406-fc37b552dcbb.png\">\r\n\r\n### Documentation\r\n\r\nNo need.\r\n\r\n\r\n\r\n\r\n","created_at":"2018-11-03T15:04:43Z","updated_at":"2018-11-07T09:57:31Z","closed_at":"2018-11-07T08:44:53Z","merged_at":"2018-11-07T08:44:53Z","merge_commit_sha":"f51514d0e73937a3759af535af26851da2a8907d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/syncthing/syncthing/milestones/27","html_url":"https://github.com/syncthing/syncthing/milestone/27","labels_url":"https://api.github.com/repos/syncthing/syncthing/milestones/27/labels","id":3723802,"node_id":"MDk6TWlsZXN0b25lMzcyMzgwMg==","number":27,"title":"v0.14.53","description":"","creator":{"login":"calmh","id":125426,"node_id":"MDQ6VXNlcjEyNTQyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/125426?v=4","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":31,"state":"open","created_at":"2018-10-09T11:15:15Z","updated_at":"2018-11-07T09:05:53Z","due_on":"2018-12-04T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5307/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5307/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/5307/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/84d9496e16a1eaa2dce1e1a07330b7021c931dc5","head":{"label":"bahadir60:bh-4000","ref":"bh-4000","sha":"84d9496e16a1eaa2dce1e1a07330b7021c931dc5","user":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"repo":{"id":138065395,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwNjUzOTU=","name":"syncthing","full_name":"bahadir60/syncthing","private":false,"owner":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bahadir60/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/bahadir60/syncthing","forks_url":"https://api.github.com/repos/bahadir60/syncthing/forks","keys_url":"https://api.github.com/repos/bahadir60/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bahadir60/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bahadir60/syncthing/teams","hooks_url":"https://api.github.com/repos/bahadir60/syncthing/hooks","issue_events_url":"https://api.github.com/repos/bahadir60/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/bahadir60/syncthing/events","assignees_url":"https://api.github.com/repos/bahadir60/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/bahadir60/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/bahadir60/syncthing/tags","blobs_url":"https://api.github.com/repos/bahadir60/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bahadir60/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bahadir60/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/bahadir60/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bahadir60/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/bahadir60/syncthing/languages","stargazers_url":"https://api.github.com/repos/bahadir60/syncthing/stargazers","contributors_url":"https://api.github.com/repos/bahadir60/syncthing/contributors","subscribers_url":"https://api.github.com/repos/bahadir60/syncthing/subscribers","subscription_url":"https://api.github.com/repos/bahadir60/syncthing/subscription","commits_url":"https://api.github.com/repos/bahadir60/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/bahadir60/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/bahadir60/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/bahadir60/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/bahadir60/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/bahadir60/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bahadir60/syncthing/merges","archive_url":"https://api.github.com/repos/bahadir60/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bahadir60/syncthing/downloads","issues_url":"https://api.github.com/repos/bahadir60/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/bahadir60/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/bahadir60/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/bahadir60/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bahadir60/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/bahadir60/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/bahadir60/syncthing/deployments","created_at":"2018-06-20T17:34:06Z","updated_at":"2018-11-07T08:57:33Z","pushed_at":"2018-11-07T08:57:29Z","git_url":"git://github.com/bahadir60/syncthing.git","ssh_url":"git@github.com:bahadir60/syncthing.git","clone_url":"https://github.com/bahadir60/syncthing.git","svn_url":"https://github.com/bahadir60/syncthing","homepage":"https://forum.syncthing.net/","size":98094,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"syncthing:master","ref":"master","sha":"add12b43aa0bdf5e67d8f421c57a5ecafb3d25fa","user":{"login":"syncthing","id":7628018,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MjgwMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7628018?v=4","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":14712850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcxMjg1MA==","name":"syncthing","full_name":"syncthing/syncthing","private":false,"owner":{"login":"syncthing","id":7628018,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MjgwMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7628018?v=4","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/syncthing/syncthing","description":"Open Source Continuous File Synchronization","fork":false,"url":"https://api.github.com/repos/syncthing/syncthing","forks_url":"https://api.github.com/repos/syncthing/syncthing/forks","keys_url":"https://api.github.com/repos/syncthing/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/syncthing/teams","hooks_url":"https://api.github.com/repos/syncthing/syncthing/hooks","issue_events_url":"https://api.github.com/repos/syncthing/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/syncthing/events","assignees_url":"https://api.github.com/repos/syncthing/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/syncthing/tags","blobs_url":"https://api.github.com/repos/syncthing/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/syncthing/languages","stargazers_url":"https://api.github.com/repos/syncthing/syncthing/stargazers","contributors_url":"https://api.github.com/repos/syncthing/syncthing/contributors","subscribers_url":"https://api.github.com/repos/syncthing/syncthing/subscribers","subscription_url":"https://api.github.com/repos/syncthing/syncthing/subscription","commits_url":"https://api.github.com/repos/syncthing/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/syncthing/merges","archive_url":"https://api.github.com/repos/syncthing/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/syncthing/downloads","issues_url":"https://api.github.com/repos/syncthing/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/syncthing/syncthing/deployments","created_at":"2013-11-26T09:48:21Z","updated_at":"2018-11-07T09:21:12Z","pushed_at":"2018-11-07T09:53:00Z","git_url":"git://github.com/syncthing/syncthing.git","ssh_url":"git@github.com:syncthing/syncthing.git","clone_url":"https://github.com/syncthing/syncthing.git","svn_url":"https://github.com/syncthing/syncthing","homepage":"https://forum.syncthing.net/","size":97250,"stargazers_count":22664,"watchers_count":22664,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1917,"mirror_url":null,"archived":false,"open_issues_count":240,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":1917,"open_issues":240,"watchers":22664,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5307"},"html":{"href":"https://github.com/syncthing/syncthing/pull/5307"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/5307"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/5307/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5307/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5307/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/84d9496e16a1eaa2dce1e1a07330b7021c931dc5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AudriusButkevicius"}}