{"action":"created","comment":{"url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/comments/61667476","id":61667476,"diff_hunk":"@@ -1,24 +1,37 @@\n 'use strict';\n-var angular = require('angular');\n \n-var templateHTML = require('./button.html');\n-\n-\n-// вместо фабрики мы используем обычные объекты\n-const myComponentDefinition = {\n+angular.module('Foodhub').component('customButton', {\n     bindings: {\n        'title': '@',\n        'href': '@',\n-       'target': '@'\n+       'isBlank': '@',\n+       'isStretch' : '@',\n+       'isTransparent': '@',\n+       'clickAction' : '=',\n     },\n \n-    template: templateHTML,\n+    template: require('./button.html'),\n \n     controller: function() {\n-        this.title = 'world';\n-        this.href = \"\";\n-        this.target = \"_self\";\n-    }\n-}\n \n-angular.module('Foodhub').component('myButton', myComponentDefinition);\n\\ No newline at end of file\n+      this.isTransparentBtn = function () {\n+        return (this.isTransparent && this.isTransparent != 0 && this.isTransparent != \"false\");\n+      }\n+\n+      this.isStretchBtn = function () {\n+        return (this.isStretch && this.isStretch != 0 && this.isStretch != \"false\");","path":"frontend/src/components/button/button.js","position":37,"original_position":37,"commit_id":"e85c0e415edde6e4d2ba23ceb554a1f1ef687940","original_commit_id":"e85c0e415edde6e4d2ba23ceb554a1f1ef687940","user":{"login":"maxkoshel","id":3064687,"avatar_url":"https://avatars.githubusercontent.com/u/3064687?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkoshel","html_url":"https://github.com/maxkoshel","followers_url":"https://api.github.com/users/maxkoshel/followers","following_url":"https://api.github.com/users/maxkoshel/following{/other_user}","gists_url":"https://api.github.com/users/maxkoshel/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkoshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkoshel/subscriptions","organizations_url":"https://api.github.com/users/maxkoshel/orgs","repos_url":"https://api.github.com/users/maxkoshel/repos","events_url":"https://api.github.com/users/maxkoshel/events{/privacy}","received_events_url":"https://api.github.com/users/maxkoshel/received_events","type":"User","site_admin":false},"body":"Слишком перегружено, делаем аналогично с is-blank","created_at":"2016-04-30T09:33:59Z","updated_at":"2016-04-30T09:33:59Z","html_url":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119#discussion_r61667476","pull_request_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/comments/61667476"},"html":{"href":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119#discussion_r61667476"},"pull_request":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119","id":68420425,"html_url":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119","diff_url":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119.diff","patch_url":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119.patch","issue_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/119","number":119,"state":"open","locked":false,"title":"80_button","user":{"login":"dmowski","id":17089422,"avatar_url":"https://avatars.githubusercontent.com/u/17089422?v=3","gravatar_id":"","url":"https://api.github.com/users/dmowski","html_url":"https://github.com/dmowski","followers_url":"https://api.github.com/users/dmowski/followers","following_url":"https://api.github.com/users/dmowski/following{/other_user}","gists_url":"https://api.github.com/users/dmowski/gists{/gist_id}","starred_url":"https://api.github.com/users/dmowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmowski/subscriptions","organizations_url":"https://api.github.com/users/dmowski/orgs","repos_url":"https://api.github.com/users/dmowski/repos","events_url":"https://api.github.com/users/dmowski/events{/privacy}","received_events_url":"https://api.github.com/users/dmowski/received_events","type":"User","site_admin":false},"body":"…кнопки","created_at":"2016-04-29T19:18:23Z","updated_at":"2016-04-30T09:33:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b11a138fac88dcddd2f8e38011154cc52d81da4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119/commits","review_comments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119/comments","review_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/119/comments","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/statuses/e85c0e415edde6e4d2ba23ceb554a1f1ef687940","head":{"label":"yandex-shri-minsk-2016:80_button","ref":"80_button","sha":"e85c0e415edde6e4d2ba23ceb554a1f1ef687940","user":{"login":"yandex-shri-minsk-2016","id":17139900,"avatar_url":"https://avatars.githubusercontent.com/u/17139900?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2016","html_url":"https://github.com/yandex-shri-minsk-2016","followers_url":"https://api.github.com/users/yandex-shri-minsk-2016/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2016/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2016/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2016/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2016/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2016/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":55837441,"name":"foodhub","full_name":"yandex-shri-minsk-2016/foodhub","owner":{"login":"yandex-shri-minsk-2016","id":17139900,"avatar_url":"https://avatars.githubusercontent.com/u/17139900?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2016","html_url":"https://github.com/yandex-shri-minsk-2016","followers_url":"https://api.github.com/users/yandex-shri-minsk-2016/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2016/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2016/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2016/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2016/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2016/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-shri-minsk-2016/foodhub","description":"","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/deployments","created_at":"2016-04-09T09:59:43Z","updated_at":"2016-04-29T12:47:13Z","pushed_at":"2016-04-30T09:02:11Z","git_url":"git://github.com/yandex-shri-minsk-2016/foodhub.git","ssh_url":"git@github.com:yandex-shri-minsk-2016/foodhub.git","clone_url":"https://github.com/yandex-shri-minsk-2016/foodhub.git","svn_url":"https://github.com/yandex-shri-minsk-2016/foodhub","homepage":null,"size":2872,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":3,"default_branch":"master"}},"base":{"label":"yandex-shri-minsk-2016:master","ref":"master","sha":"f4e05feadcfef782e3bde9d2eafdcf34b9ca233a","user":{"login":"yandex-shri-minsk-2016","id":17139900,"avatar_url":"https://avatars.githubusercontent.com/u/17139900?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2016","html_url":"https://github.com/yandex-shri-minsk-2016","followers_url":"https://api.github.com/users/yandex-shri-minsk-2016/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2016/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2016/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2016/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2016/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2016/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":55837441,"name":"foodhub","full_name":"yandex-shri-minsk-2016/foodhub","owner":{"login":"yandex-shri-minsk-2016","id":17139900,"avatar_url":"https://avatars.githubusercontent.com/u/17139900?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2016","html_url":"https://github.com/yandex-shri-minsk-2016","followers_url":"https://api.github.com/users/yandex-shri-minsk-2016/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2016/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2016/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2016/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2016/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2016/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-shri-minsk-2016/foodhub","description":"","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/deployments","created_at":"2016-04-09T09:59:43Z","updated_at":"2016-04-29T12:47:13Z","pushed_at":"2016-04-30T09:02:11Z","git_url":"git://github.com/yandex-shri-minsk-2016/foodhub.git","ssh_url":"git@github.com:yandex-shri-minsk-2016/foodhub.git","clone_url":"https://github.com/yandex-shri-minsk-2016/foodhub.git","svn_url":"https://github.com/yandex-shri-minsk-2016/foodhub","homepage":null,"size":2872,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119"},"html":{"href":"https://github.com/yandex-shri-minsk-2016/foodhub/pull/119"},"issue":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/119"},"comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/yandex-shri-minsk-2016/foodhub/statuses/e85c0e415edde6e4d2ba23ceb554a1f1ef687940"}}}}