{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments/36775027","id":36775027,"diff_hunk":"@@ -32,37 +58,86 @@\n     (range (rand-int 50))))\n \n \n+(defn render-import-modal [state props refs]\n+  [comps/ModalDialog\n+   {:width 600\n+    :content (react/create-element\n+               [:div {}\n+                [:div {:style {:backgroundColor \"#fff\"\n+                               :borderBottom (str \"1px solid \" (:line-gray style/colors))\n+                               :padding \"20px 48px 18px\"\n+                               :fontSize \"137%\" :fontWeight 400 :lineHeight 1}}\n+                 \"Import a Method Configuration\"]\n+                [:div {:style {:padding \"22px 48px 40px\"\n+                               :backgroundColor (:background-gray style/colors)}}\n+                 \"Destination Name : \"\n+                 (style/create-text-field\n+                   {:defaultValue (get-in @state [:selected-conf \"name\"])\n+                    :ref \"destinationName\"})\n+                 [:br]\n+                 \"Destination Namespace : \"\n+                 (style/create-text-field\n+                   {:defaultValue (get-in @state [:selected-conf \"namespace\"])\n+                    :ref \"destinationNamespace\"})\n+                 [:br]\n+                 [comps/Button\n+                  {:title-text \"Import configuration\"\n+                   :icon :plus\n+                   :onClick\n+                   (fn []\n+                     (let [workspace (:workspace props)\n+                           dest-name-value (.-value\n+                                             (.getDOMNode (@refs \"destinationName\")))\n+                           dest-namespace-value (.-value (.getDOMNode\n+                                                           (@refs \"destinationNamespace\")))\n+                           dest-workspace-name (get workspace \"name\")\n+                           dest-workspace-namespace (get workspace \"namespace\")\n+                           methodRepoQuery (create-post-data\n+                                             (:selected-conf @state)\n+                                             dest-name-value\n+                                             dest-namespace-value\n+                                             dest-workspace-name\n+                                             dest-workspace-namespace)\n+                           url-method :post","path":"src/cljs/org/broadinstitute/firecloud_ui/page/workspace/method_config_importer.cljs","position":null,"original_position":108,"commit_id":"6a0242d3eecf9f31053635e4aec1b859b4c830af","original_commit_id":"50ec8d245b29bf888ed81d722d7078a34264dc00","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":"I rearranged and deleted some bindings","created_at":"2015-08-11T17:46:18Z","updated_at":"2015-08-11T17:46:18Z","html_url":"https://github.com/broadinstitute/firecloud-ui/pull/74#discussion_r36775027","pull_request_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/comments/36775027"},"html":{"href":"https://github.com/broadinstitute/firecloud-ui/pull/74#discussion_r36775027"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74","id":42142108,"html_url":"https://github.com/broadinstitute/firecloud-ui/pull/74","diff_url":"https://github.com/broadinstitute/firecloud-ui/pull/74.diff","patch_url":"https://github.com/broadinstitute/firecloud-ui/pull/74.patch","issue_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/74","number":74,"state":"open","locked":false,"title":"get modal text field elements (to import a selected MC)","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 input-field  values to submit for import to ajax-orch (use refs)\r\n \r\naddress code concerns :\r\n1) get-in usage , 2) ref with create-class","created_at":"2015-08-11T15:27:02Z","updated_at":"2015-08-11T17:46:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20f607850c61b8fdf0fceaca38028b9fb62a37e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74/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/74/comments","statuses_url":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/6a0242d3eecf9f31053635e4aec1b859b4c830af","head":{"label":"broadinstitute:es_DSDEEPB-1003-PR2","ref":"es_DSDEEPB-1003-PR2","sha":"6a0242d3eecf9f31053635e4aec1b859b4c830af","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-11T17:41:18Z","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":1033,"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":"1ac645d57032aa9c5bd21f6fd726256d8bc6cb73","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-11T17:41:18Z","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":1033,"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/74"},"html":{"href":"https://github.com/broadinstitute/firecloud-ui/pull/74"},"issue":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/74"},"comments":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/pulls/74/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/74/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/firecloud-ui/statuses/6a0242d3eecf9f31053635e4aec1b859b4c830af"}}}}