{"action":"created","comment":{"url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/comments/201744914","pull_request_review_id":136306100,"id":201744914,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTc0NDkxNA==","diff_hunk":"@@ -148,7 +154,22 @@ export default {\n             this.$refs.input.focus();\n         });\n     },\n+    mounted() {\n+        this.inputRestore();\n+    },\n     methods: {\n+        inputUpdate(val) {\n+            if (state.getSetting('settings.buffers.shared_input')) {\n+                state.ui.current_input = val;\n+            } else {\n+                this.buffer.current_input = val;\n+            }\n+        },\n+        inputRestore() {\n+            let currentInput = state.getSetting('settings.buffers.shared_input') ?\n+                state.ui.current_input : this.buffer.current_input;","path":"src/components/ControlInput.vue","position":37,"original_position":37,"commit_id":"36dc04204c21da5db109a01a9319d141f764836c","original_commit_id":"36dc04204c21da5db109a01a9319d141f764836c","user":{"login":"prawnsalad","id":725880,"node_id":"MDQ6VXNlcjcyNTg4MA==","avatar_url":"https://avatars2.githubusercontent.com/u/725880?v=4","gravatar_id":"","url":"https://api.github.com/users/prawnsalad","html_url":"https://github.com/prawnsalad","followers_url":"https://api.github.com/users/prawnsalad/followers","following_url":"https://api.github.com/users/prawnsalad/following{/other_user}","gists_url":"https://api.github.com/users/prawnsalad/gists{/gist_id}","starred_url":"https://api.github.com/users/prawnsalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prawnsalad/subscriptions","organizations_url":"https://api.github.com/users/prawnsalad/orgs","repos_url":"https://api.github.com/users/prawnsalad/repos","events_url":"https://api.github.com/users/prawnsalad/events{/privacy}","received_events_url":"https://api.github.com/users/prawnsalad/received_events","type":"User","site_admin":false},"body":"Ternary should be in the form:\r\n~~~javascript\r\nlet currentInput = state.getSetting('settings.buffers.shared_input') ?\r\n    state.ui.current_input :\r\n    this.buffer.current_input;\r\n~~~","created_at":"2018-07-11T15:48:40Z","updated_at":"2018-07-11T15:48:41Z","html_url":"https://github.com/kiwiirc/kiwiirc/pull/442#discussion_r201744914","pull_request_url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/comments/201744914"},"html":{"href":"https://github.com/kiwiirc/kiwiirc/pull/442#discussion_r201744914"},"pull_request":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442"}}},"pull_request":{"url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442","id":200744792,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNzQ0Nzky","html_url":"https://github.com/kiwiirc/kiwiirc/pull/442","diff_url":"https://github.com/kiwiirc/kiwiirc/pull/442.diff","patch_url":"https://github.com/kiwiirc/kiwiirc/pull/442.patch","issue_url":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/442","number":442,"state":"open","locked":false,"title":"Remember IrcInput either commonly or per buffer","user":{"login":"ItsOnlyBinary","id":558946,"node_id":"MDQ6VXNlcjU1ODk0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/558946?v=4","gravatar_id":"","url":"https://api.github.com/users/ItsOnlyBinary","html_url":"https://github.com/ItsOnlyBinary","followers_url":"https://api.github.com/users/ItsOnlyBinary/followers","following_url":"https://api.github.com/users/ItsOnlyBinary/following{/other_user}","gists_url":"https://api.github.com/users/ItsOnlyBinary/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsOnlyBinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsOnlyBinary/subscriptions","organizations_url":"https://api.github.com/users/ItsOnlyBinary/orgs","repos_url":"https://api.github.com/users/ItsOnlyBinary/repos","events_url":"https://api.github.com/users/ItsOnlyBinary/events{/privacy}","received_events_url":"https://api.github.com/users/ItsOnlyBinary/received_events","type":"User","site_admin":false},"body":" #31","created_at":"2018-07-11T15:42:46Z","updated_at":"2018-07-11T15:48:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d64dc8418daf2c8b03b1d94bd9c0941e11a1f06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442/commits","review_comments_url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442/comments","review_comment_url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/442/comments","statuses_url":"https://api.github.com/repos/kiwiirc/kiwiirc/statuses/36dc04204c21da5db109a01a9319d141f764836c","head":{"label":"ItsOnlyBinary:remember_input","ref":"remember_input","sha":"36dc04204c21da5db109a01a9319d141f764836c","user":{"login":"ItsOnlyBinary","id":558946,"node_id":"MDQ6VXNlcjU1ODk0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/558946?v=4","gravatar_id":"","url":"https://api.github.com/users/ItsOnlyBinary","html_url":"https://github.com/ItsOnlyBinary","followers_url":"https://api.github.com/users/ItsOnlyBinary/followers","following_url":"https://api.github.com/users/ItsOnlyBinary/following{/other_user}","gists_url":"https://api.github.com/users/ItsOnlyBinary/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsOnlyBinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsOnlyBinary/subscriptions","organizations_url":"https://api.github.com/users/ItsOnlyBinary/orgs","repos_url":"https://api.github.com/users/ItsOnlyBinary/repos","events_url":"https://api.github.com/users/ItsOnlyBinary/events{/privacy}","received_events_url":"https://api.github.com/users/ItsOnlyBinary/received_events","type":"User","site_admin":false},"repo":{"id":94332081,"node_id":"MDEwOlJlcG9zaXRvcnk5NDMzMjA4MQ==","name":"kiwiirc","full_name":"ItsOnlyBinary/kiwiirc","owner":{"login":"ItsOnlyBinary","id":558946,"node_id":"MDQ6VXNlcjU1ODk0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/558946?v=4","gravatar_id":"","url":"https://api.github.com/users/ItsOnlyBinary","html_url":"https://github.com/ItsOnlyBinary","followers_url":"https://api.github.com/users/ItsOnlyBinary/followers","following_url":"https://api.github.com/users/ItsOnlyBinary/following{/other_user}","gists_url":"https://api.github.com/users/ItsOnlyBinary/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsOnlyBinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsOnlyBinary/subscriptions","organizations_url":"https://api.github.com/users/ItsOnlyBinary/orgs","repos_url":"https://api.github.com/users/ItsOnlyBinary/repos","events_url":"https://api.github.com/users/ItsOnlyBinary/events{/privacy}","received_events_url":"https://api.github.com/users/ItsOnlyBinary/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ItsOnlyBinary/kiwiirc","description":"Next generation of the Kiwi IRC web client","fork":true,"url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc","forks_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/forks","keys_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/teams","hooks_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/hooks","issue_events_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/issues/events{/number}","events_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/events","assignees_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/assignees{/user}","branches_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/branches{/branch}","tags_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/tags","blobs_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/statuses/{sha}","languages_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/languages","stargazers_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/stargazers","contributors_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/contributors","subscribers_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/subscribers","subscription_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/subscription","commits_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/contents/{+path}","compare_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/merges","archive_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/downloads","issues_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/issues{/number}","pulls_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/pulls{/number}","milestones_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/milestones{/number}","notifications_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/labels{/name}","releases_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/releases{/id}","deployments_url":"https://api.github.com/repos/ItsOnlyBinary/kiwiirc/deployments","created_at":"2017-06-14T13:09:18Z","updated_at":"2018-06-28T15:56:33Z","pushed_at":"2018-07-11T15:41:45Z","git_url":"git://github.com/ItsOnlyBinary/kiwiirc.git","ssh_url":"git@github.com:ItsOnlyBinary/kiwiirc.git","clone_url":"https://github.com/ItsOnlyBinary/kiwiirc.git","svn_url":"https://github.com/ItsOnlyBinary/kiwiirc","homepage":null,"size":2557,"stargazers_count":0,"watchers_count":0,"language":"Vue","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":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kiwiirc:master","ref":"master","sha":"ae15572d2118efebaca1aa9e415fe9e295085eeb","user":{"login":"kiwiirc","id":4229006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMjkwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4229006?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwiirc","html_url":"https://github.com/kiwiirc","followers_url":"https://api.github.com/users/kiwiirc/followers","following_url":"https://api.github.com/users/kiwiirc/following{/other_user}","gists_url":"https://api.github.com/users/kiwiirc/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwiirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwiirc/subscriptions","organizations_url":"https://api.github.com/users/kiwiirc/orgs","repos_url":"https://api.github.com/users/kiwiirc/repos","events_url":"https://api.github.com/users/kiwiirc/events{/privacy}","received_events_url":"https://api.github.com/users/kiwiirc/received_events","type":"Organization","site_admin":false},"repo":{"id":75491939,"node_id":"MDEwOlJlcG9zaXRvcnk3NTQ5MTkzOQ==","name":"kiwiirc","full_name":"kiwiirc/kiwiirc","owner":{"login":"kiwiirc","id":4229006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMjkwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4229006?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwiirc","html_url":"https://github.com/kiwiirc","followers_url":"https://api.github.com/users/kiwiirc/followers","following_url":"https://api.github.com/users/kiwiirc/following{/other_user}","gists_url":"https://api.github.com/users/kiwiirc/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwiirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwiirc/subscriptions","organizations_url":"https://api.github.com/users/kiwiirc/orgs","repos_url":"https://api.github.com/users/kiwiirc/repos","events_url":"https://api.github.com/users/kiwiirc/events{/privacy}","received_events_url":"https://api.github.com/users/kiwiirc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiwiirc/kiwiirc","description":"Next generation of the Kiwi IRC web client","fork":false,"url":"https://api.github.com/repos/kiwiirc/kiwiirc","forks_url":"https://api.github.com/repos/kiwiirc/kiwiirc/forks","keys_url":"https://api.github.com/repos/kiwiirc/kiwiirc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiwiirc/kiwiirc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiwiirc/kiwiirc/teams","hooks_url":"https://api.github.com/repos/kiwiirc/kiwiirc/hooks","issue_events_url":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/events{/number}","events_url":"https://api.github.com/repos/kiwiirc/kiwiirc/events","assignees_url":"https://api.github.com/repos/kiwiirc/kiwiirc/assignees{/user}","branches_url":"https://api.github.com/repos/kiwiirc/kiwiirc/branches{/branch}","tags_url":"https://api.github.com/repos/kiwiirc/kiwiirc/tags","blobs_url":"https://api.github.com/repos/kiwiirc/kiwiirc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiwiirc/kiwiirc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiwiirc/kiwiirc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiwiirc/kiwiirc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiwiirc/kiwiirc/statuses/{sha}","languages_url":"https://api.github.com/repos/kiwiirc/kiwiirc/languages","stargazers_url":"https://api.github.com/repos/kiwiirc/kiwiirc/stargazers","contributors_url":"https://api.github.com/repos/kiwiirc/kiwiirc/contributors","subscribers_url":"https://api.github.com/repos/kiwiirc/kiwiirc/subscribers","subscription_url":"https://api.github.com/repos/kiwiirc/kiwiirc/subscription","commits_url":"https://api.github.com/repos/kiwiirc/kiwiirc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiwiirc/kiwiirc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiwiirc/kiwiirc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiwiirc/kiwiirc/contents/{+path}","compare_url":"https://api.github.com/repos/kiwiirc/kiwiirc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiwiirc/kiwiirc/merges","archive_url":"https://api.github.com/repos/kiwiirc/kiwiirc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiwiirc/kiwiirc/downloads","issues_url":"https://api.github.com/repos/kiwiirc/kiwiirc/issues{/number}","pulls_url":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls{/number}","milestones_url":"https://api.github.com/repos/kiwiirc/kiwiirc/milestones{/number}","notifications_url":"https://api.github.com/repos/kiwiirc/kiwiirc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiwiirc/kiwiirc/labels{/name}","releases_url":"https://api.github.com/repos/kiwiirc/kiwiirc/releases{/id}","deployments_url":"https://api.github.com/repos/kiwiirc/kiwiirc/deployments","created_at":"2016-12-03T18:19:17Z","updated_at":"2018-07-11T13:31:24Z","pushed_at":"2018-07-11T15:42:47Z","git_url":"git://github.com/kiwiirc/kiwiirc.git","ssh_url":"git@github.com:kiwiirc/kiwiirc.git","clone_url":"https://github.com/kiwiirc/kiwiirc.git","svn_url":"https://github.com/kiwiirc/kiwiirc","homepage":"https://kiwiirc.com/","size":2538,"stargazers_count":132,"watchers_count":132,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":89,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":48,"open_issues":89,"watchers":132,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442"},"html":{"href":"https://github.com/kiwiirc/kiwiirc/pull/442"},"issue":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/442"},"comments":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/issues/442/comments"},"review_comments":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442/comments"},"review_comment":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/pulls/442/commits"},"statuses":{"href":"https://api.github.com/repos/kiwiirc/kiwiirc/statuses/36dc04204c21da5db109a01a9319d141f764836c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"prawnsalad"}}