{"action":"created","comment":{"url":"https://api.github.com/repos/coduno/app/pulls/comments/61552034","id":61552034,"diff_hunk":"@@ -0,0 +1,92 @@\n+<link rel=\"import\" href=\"/bower_components/iron-flex-layout/iron-flex-layout-classes.html\">\n+<link rel=\"import\" href=\"/bower_components/paper-material/paper-material.html\">\n+<link rel=\"import\" href=\"/bower_components/paper-input/paper-input.html\">\n+<link rel=\"import\" href=\"/bower_components/paper-button/paper-button.html\">\n+<link rel=\"import\" href=\"/bower_components/iron-ajax/iron-ajax.html\">\n+<link rel=\"import\" href=\"/bower_components/paper-dialog/paper-dialog.html\">\n+<link rel=\"import\" href=\"/bower_components/paper-toast/paper-toast.html\">\n+<link rel=\"import\" href=\"/bower_components/iron-form/iron-form.html\">\n+\n+<dom-module id=\"create-team-modal\">\n+\t<style include=\"iron-flex\">\n+\t\t.fieldList {\n+\t\t\t@apply(--layout-vertical);\n+\t\t}\n+\t\tpaper-input {\n+\t\t\twidth: 250px;\n+\t\t}\n+\t</style>\n+\t<template>\n+\t\t<iron-ajax\n+\t\t\tid=\"createTeamRequest\"\n+\t\t\tmethod=\"POST\"\n+\t\t\thandle-as=\"text\"\n+\t\t\tcontent-type=\"application/json\"\n+\t\t\twith-credentials=\"true\"\n+\t\t\ton-response=\"_onResponse\"\n+\t\t\ton-error=\"_onError\">\n+\t\t</iron-ajax>\n+\t\t<paper-dialog id=\"createTeamDialog\" modal>\n+\t\t\t<h4>Create new team</h4>\n+\t\t\t<div class=\"fieldList\">\n+\t\t\t\t<form is=\"iron-form\" id=\"form\">\n+\t\t\t\t\t<paper-input autofocus=\"true\" label=\"Name\" value=\"{{team.name}}\"\n+\t\t\t\t\t\trequired minlength=\"6\" maxlength=\"40\" auto-validate error-message=\"Must be between 6 and 40 chars.\"></paper-input>\n+\t\t\t\t\t<paper-input label=\"Canonical name\" value=\"{{team.canonicalName}}\"\n+\t\t\t\t\t\trequired minlength=\"6\" maxlength=\"40\" auto-validate error-message=\"Must be between 6 and 40 chars.\"></paper-input>\n+\t\t\t\t</form>\n+\t\t\t</div>\n+\t\t\t<div class=\"buttons\">\n+\t\t\t\t<paper-button class=\"secondary\" dialog-dismiss>Cancel</paper-button>\n+\t\t\t\t<paper-button on-click=\"_saveTeam\" class=\"primary\" dialog-confirm disabled=\"{{saveDisabled}}\">Save</paper-button>\n+\t\t\t</div>\n+\t\t</paper-dialog>\n+\t\t<paper-toast id=\"toast\" text=\"{{toastText}}\"></paper-toast>\n+\t</template>\n+\t<script>\n+\t\t// NOTE: username needs to be set for data to be shown.\n+\t\tPolymer({\n+\t\t\tis: 'create-team-modal',\n+\t\t\tproperties: {\n+\t\t\t\tteam: {\n+\t\t\t\t\ttype: Object,\n+\t\t\t\t\tvalue: {}\n+\t\t\t\t},\n+\t\t\t\tsaveDisabled: {\n+\t\t\t\t\ttype: Boolean,\n+\t\t\t\t\tvalue: true\n+\t\t\t\t}\n+\t\t\t},\n+\t\t\tlisteners: {\n+\t\t\t\t'keyup': '_teamChanged'\n+\t\t\t},\n+\t\t\ttoggle: function(){\n+\t\t\t\tthis.$.createTeamDialog.toggle();\n+\t\t\t},\n+\t\t\t_saveTeam: function(){\n+\t\t\t\tif(!this.$.form.validate()){\n+\t\t\t\t\treturn;\n+\t\t\t\t}\n+\t\t\t\tthis.$.createTeamRequest.body = this.team;\n+\t\t\t\tthis.$.createTeamRequest.url = util.build('/teams');\n+\t\t\t\tthis.$.createTeamRequest.generateRequest();\n+\t\t\t\tthis.team = {};\n+\t\t\t},\n+\t\t\t_teamChanged: function(){\n+\t\t\t\tthis.saveDisabled = !this.$.form.validate();\n+\t\t\t},\n+\t\t\t_onResponse: function(){\n+\t\t\t\tthis.toastText = 'Team successfuly created.';","path":"app/elements/coder/team/create-team-modal.html","position":79,"original_position":79,"commit_id":"9fddfdee86a1ff5f166483f996c3f40df7eaa9b5","original_commit_id":"9fddfdee86a1ff5f166483f996c3f40df7eaa9b5","user":{"login":"flowlo","id":542154,"avatar_url":"https://avatars.githubusercontent.com/u/542154?v=3","gravatar_id":"","url":"https://api.github.com/users/flowlo","html_url":"https://github.com/flowlo","followers_url":"https://api.github.com/users/flowlo/followers","following_url":"https://api.github.com/users/flowlo/following{/other_user}","gists_url":"https://api.github.com/users/flowlo/gists{/gist_id}","starred_url":"https://api.github.com/users/flowlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowlo/subscriptions","organizations_url":"https://api.github.com/users/flowlo/orgs","repos_url":"https://api.github.com/users/flowlo/repos","events_url":"https://api.github.com/users/flowlo/events{/privacy}","received_events_url":"https://api.github.com/users/flowlo/received_events","type":"User","site_admin":false},"body":"\"successfully\".","created_at":"2016-04-29T09:17:26Z","updated_at":"2016-04-29T09:17:26Z","html_url":"https://github.com/coduno/app/pull/223#discussion_r61552034","pull_request_url":"https://api.github.com/repos/coduno/app/pulls/223","_links":{"self":{"href":"https://api.github.com/repos/coduno/app/pulls/comments/61552034"},"html":{"href":"https://github.com/coduno/app/pull/223#discussion_r61552034"},"pull_request":{"href":"https://api.github.com/repos/coduno/app/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/coduno/app/pulls/223","id":68239499,"html_url":"https://github.com/coduno/app/pull/223","diff_url":"https://github.com/coduno/app/pull/223.diff","patch_url":"https://github.com/coduno/app/pull/223.patch","issue_url":"https://api.github.com/repos/coduno/app/issues/223","number":223,"state":"open","locked":false,"title":"Actions regarding team on user profile page","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"body":" * Create team button + modal\r\n * Add actions to table (actions don`t do anything)","created_at":"2016-04-28T15:21:03Z","updated_at":"2016-04-29T09:17:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"649fceafe6f956dd0dd827bb89831459c5acff70","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coduno/app/pulls/223/commits","review_comments_url":"https://api.github.com/repos/coduno/app/pulls/223/comments","review_comment_url":"https://api.github.com/repos/coduno/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coduno/app/issues/223/comments","statuses_url":"https://api.github.com/repos/coduno/app/statuses/9fddfdee86a1ff5f166483f996c3f40df7eaa9b5","head":{"label":"victorbalan:user-teams-actions","ref":"user-teams-actions","sha":"9fddfdee86a1ff5f166483f996c3f40df7eaa9b5","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"repo":{"id":38740245,"name":"app","full_name":"victorbalan/app","owner":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorbalan/app","description":"","fork":true,"url":"https://api.github.com/repos/victorbalan/app","forks_url":"https://api.github.com/repos/victorbalan/app/forks","keys_url":"https://api.github.com/repos/victorbalan/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorbalan/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorbalan/app/teams","hooks_url":"https://api.github.com/repos/victorbalan/app/hooks","issue_events_url":"https://api.github.com/repos/victorbalan/app/issues/events{/number}","events_url":"https://api.github.com/repos/victorbalan/app/events","assignees_url":"https://api.github.com/repos/victorbalan/app/assignees{/user}","branches_url":"https://api.github.com/repos/victorbalan/app/branches{/branch}","tags_url":"https://api.github.com/repos/victorbalan/app/tags","blobs_url":"https://api.github.com/repos/victorbalan/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorbalan/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorbalan/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorbalan/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorbalan/app/statuses/{sha}","languages_url":"https://api.github.com/repos/victorbalan/app/languages","stargazers_url":"https://api.github.com/repos/victorbalan/app/stargazers","contributors_url":"https://api.github.com/repos/victorbalan/app/contributors","subscribers_url":"https://api.github.com/repos/victorbalan/app/subscribers","subscription_url":"https://api.github.com/repos/victorbalan/app/subscription","commits_url":"https://api.github.com/repos/victorbalan/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorbalan/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorbalan/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorbalan/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorbalan/app/contents/{+path}","compare_url":"https://api.github.com/repos/victorbalan/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorbalan/app/merges","archive_url":"https://api.github.com/repos/victorbalan/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorbalan/app/downloads","issues_url":"https://api.github.com/repos/victorbalan/app/issues{/number}","pulls_url":"https://api.github.com/repos/victorbalan/app/pulls{/number}","milestones_url":"https://api.github.com/repos/victorbalan/app/milestones{/number}","notifications_url":"https://api.github.com/repos/victorbalan/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorbalan/app/labels{/name}","releases_url":"https://api.github.com/repos/victorbalan/app/releases{/id}","deployments_url":"https://api.github.com/repos/victorbalan/app/deployments","created_at":"2015-07-08T07:58:01Z","updated_at":"2015-08-03T06:11:31Z","pushed_at":"2016-04-29T09:15:52Z","git_url":"git://github.com/victorbalan/app.git","ssh_url":"git@github.com:victorbalan/app.git","clone_url":"https://github.com/victorbalan/app.git","svn_url":"https://github.com/victorbalan/app","homepage":null,"size":790,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coduno:master","ref":"master","sha":"7ad549e70c654a07bb3a3714996d54df5a8ce2d0","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":38739913,"name":"app","full_name":"coduno/app","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/app","description":"Single page app and main interface for Coduno","fork":false,"url":"https://api.github.com/repos/coduno/app","forks_url":"https://api.github.com/repos/coduno/app/forks","keys_url":"https://api.github.com/repos/coduno/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/app/teams","hooks_url":"https://api.github.com/repos/coduno/app/hooks","issue_events_url":"https://api.github.com/repos/coduno/app/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/app/events","assignees_url":"https://api.github.com/repos/coduno/app/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/app/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/app/tags","blobs_url":"https://api.github.com/repos/coduno/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/app/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/app/languages","stargazers_url":"https://api.github.com/repos/coduno/app/stargazers","contributors_url":"https://api.github.com/repos/coduno/app/contributors","subscribers_url":"https://api.github.com/repos/coduno/app/subscribers","subscription_url":"https://api.github.com/repos/coduno/app/subscription","commits_url":"https://api.github.com/repos/coduno/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/app/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/app/merges","archive_url":"https://api.github.com/repos/coduno/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/app/downloads","issues_url":"https://api.github.com/repos/coduno/app/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/app/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/app/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/app/labels{/name}","releases_url":"https://api.github.com/repos/coduno/app/releases{/id}","deployments_url":"https://api.github.com/repos/coduno/app/deployments","created_at":"2015-07-08T07:51:31Z","updated_at":"2016-01-14T09:13:08Z","pushed_at":"2016-04-29T09:15:53Z","git_url":"git://github.com/coduno/app.git","ssh_url":"git@github.com:coduno/app.git","clone_url":"https://github.com/coduno/app.git","svn_url":"https://github.com/coduno/app","homepage":"https://app.cod.uno/","size":868,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":16,"forks":4,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coduno/app/pulls/223"},"html":{"href":"https://github.com/coduno/app/pull/223"},"issue":{"href":"https://api.github.com/repos/coduno/app/issues/223"},"comments":{"href":"https://api.github.com/repos/coduno/app/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/coduno/app/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/coduno/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coduno/app/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/coduno/app/statuses/9fddfdee86a1ff5f166483f996c3f40df7eaa9b5"}}}}