{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments/36541570","id":36541570,"diff_hunk":"@@ -67,16 +67,34 @@\n                    (str \"Selected Method Configuration Namespace : \" (:selected-mc-namespace @state))\n                    [:hr]\n                    \"Destination Name : \"\n-                   (style/create-text-field {:style {:ref \"destinationName\"}})\n+                   (style/create-text-field {:id \"dest_name_id\" :style {:ref \"destinationName\"}})\n                    [:br]\n                    \"Destination Namespace : \"\n-                   (style/create-text-field {:style {:ref \"destinationNamespace\"}})\n+                   (style/create-text-field {:id \"dest_namespace_id\" :style {:ref \"destinationNamespace\"}})\n                    [:br]\n+                   [comps/Button  {:title_text \"Pre-populate names\"\n+                                   :icon :gear\n+                                   :onClick (fn []\n+                                              (let [\n+                                                 dest_name_elem  (.getElementById js/document (name \"dest_name_id\"))\n+                                                 method_config_prepopname ((:selected-conf @state) \"name\")\n+                                                 dest_namespace_elem (.getElementById js/document (name \"dest_namespace_id\"))\n+                                                 method_config_ns_prepopname ((:selected-conf  @state) \"namespace\" )\n+                                                 ]\n+                                                (set! (.-value dest_name_elem) method_config_prepopname)\n+                                                (set! (.-value  dest_namespace_elem)  method_config_ns_prepopname)))}]\n                    [comps/Button\n                     {:icon :plus\n-                     :onClick (fn [] (swap! state assoc :show-import-mc-modal? false))}]]]\n-        :show-when (:show-import-mc-modal? @state)\n-        :dismiss-self (fn [] (swap! state assoc :show-import-mc-modal? false))}]\n+                     :onClick (fn []\n+                                (utils/rlog \"this is where an AJAX call must be made!\")\n+                                (swap! state assoc :show-import-mc-modal? false)\n+                                )}]","path":"src/cljs/org/broadinstitute/firecloud_ui/page/workspace/method_config_importer.cljs","position":39,"original_position":39,"commit_id":"855d5565b04bf1f3cc4357fb5444e07e6d3ba6be","original_commit_id":"855d5565b04bf1f3cc4357fb5444e07e6d3ba6be","user":{"login":"eddiebroad","id":13119214,"avatar_url":"https://avatars.githubusercontent.com/u/13119214?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiebroad","html_url":"https://github.com/eddiebroad","followers_url":"https://api.github.com/users/eddiebroad/followers","following_url":"https://api.github.com/users/eddiebroad/following{/other_user}","gists_url":"https://api.github.com/users/eddiebroad/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiebroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiebroad/subscriptions","organizations_url":"https://api.github.com/users/eddiebroad/orgs","repos_url":"https://api.github.com/users/eddiebroad/repos","events_url":"https://api.github.com/users/eddiebroad/events{/privacy}","received_events_url":"https://api.github.com/users/eddiebroad/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-08-07T17:35:38Z","updated_at":"2015-08-07T17:35:38Z","html_url":"https://github.com/broadinstitute/firecloud-ui/pull/66#discussion_r36541570","pull_request_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments/36541570"},"html":{"href":"https://github.com/broadinstitute/firecloud-ui/pull/66#discussion_r36541570"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66","id":41789795,"html_url":"https://github.com/broadinstitute/firecloud-ui/pull/66","diff_url":"https://github.com/broadinstitute/firecloud-ui/pull/66.diff","patch_url":"https://github.com/broadinstitute/firecloud-ui/pull/66.patch","issue_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/66","number":66,"state":"open","locked":false,"title":"have an import window with a prepopulate button","user":{"login":"eddiebroad","id":13119214,"avatar_url":"https://avatars.githubusercontent.com/u/13119214?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiebroad","html_url":"https://github.com/eddiebroad","followers_url":"https://api.github.com/users/eddiebroad/followers","following_url":"https://api.github.com/users/eddiebroad/following{/other_user}","gists_url":"https://api.github.com/users/eddiebroad/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiebroad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiebroad/subscriptions","organizations_url":"https://api.github.com/users/eddiebroad/orgs","repos_url":"https://api.github.com/users/eddiebroad/repos","events_url":"https://api.github.com/users/eddiebroad/events{/privacy}","received_events_url":"https://api.github.com/users/eddiebroad/received_events","type":"User","site_admin":false},"body":"add in pre-populate button and \"cancel import of selected mc button\"\r\n\r\nadded tooltip/title in button\r\n\r\nadjust whitespace and comments","created_at":"2015-08-06T13:52:51Z","updated_at":"2015-08-07T17:35:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2ef5df272862030611082bb747c6995f5cfa33e","assignee":{"login":"MattPutnam","id":785011,"avatar_url":"https://avatars.githubusercontent.com/u/785011?v=3","gravatar_id":"","url":"https://api.github.com/users/MattPutnam","html_url":"https://github.com/MattPutnam","followers_url":"https://api.github.com/users/MattPutnam/followers","following_url":"https://api.github.com/users/MattPutnam/following{/other_user}","gists_url":"https://api.github.com/users/MattPutnam/gists{/gist_id}","starred_url":"https://api.github.com/users/MattPutnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattPutnam/subscriptions","organizations_url":"https://api.github.com/users/MattPutnam/orgs","repos_url":"https://api.github.com/users/MattPutnam/repos","events_url":"https://api.github.com/users/MattPutnam/events{/privacy}","received_events_url":"https://api.github.com/users/MattPutnam/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66/comments","review_comment_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/66/comments","statuses_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/855d5565b04bf1f3cc4357fb5444e07e6d3ba6be","head":{"label":"broadinstitute:es_import_mc_auto_pop","ref":"es_import_mc_auto_pop","sha":"855d5565b04bf1f3cc4357fb5444e07e6d3ba6be","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":37272584,"name":"firecloud-ui","full_name":"broadinstitute/firecloud-ui","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/firecloud-ui","description":"","fork":false,"url":"https://api.github.com/repos/broadinstitute/firecloud-ui","forks_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/forks","keys_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/teams","hooks_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/events","assignees_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/tags","blobs_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/subscription","commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/merges","archive_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/downloads","issues_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/releases{/id}","created_at":"2015-06-11T16:26:05Z","updated_at":"2015-08-04T13:01:25Z","pushed_at":"2015-08-07T17:22:28Z","git_url":"git://github.com/broadinstitute/firecloud-ui.git","ssh_url":"git@github.com:broadinstitute/firecloud-ui.git","clone_url":"https://github.com/broadinstitute/firecloud-ui.git","svn_url":"https://github.com/broadinstitute/firecloud-ui","homepage":null,"size":1499,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"broadinstitute:master","ref":"master","sha":"c596f3d846874e1252c60ec9d4574a2e75e5cb1d","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":37272584,"name":"firecloud-ui","full_name":"broadinstitute/firecloud-ui","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/firecloud-ui","description":"","fork":false,"url":"https://api.github.com/repos/broadinstitute/firecloud-ui","forks_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/forks","keys_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/teams","hooks_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/events","assignees_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/tags","blobs_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/subscription","commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/merges","archive_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/downloads","issues_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/releases{/id}","created_at":"2015-06-11T16:26:05Z","updated_at":"2015-08-04T13:01:25Z","pushed_at":"2015-08-07T17:22:28Z","git_url":"git://github.com/broadinstitute/firecloud-ui.git","ssh_url":"git@github.com:broadinstitute/firecloud-ui.git","clone_url":"https://github.com/broadinstitute/firecloud-ui.git","svn_url":"https://github.com/broadinstitute/firecloud-ui","homepage":null,"size":1499,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66"},"html":{"href":"https://github.com/broadinstitute/firecloud-ui/pull/66"},"issue":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/66"},"comments":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/855d5565b04bf1f3cc4357fb5444e07e6d3ba6be"}}}}