{"action":"created","comment":{"url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/comments/145604150","pull_request_review_id":70427344,"id":145604150,"diff_hunk":"@@ -0,0 +1,21 @@\n+angular.module 'mnoEnterpriseAngular'\n+  .component('dashboardCompanyDeletion', {\n+    restrict: 'EA'\n+    templateUrl: 'app/components/dashboard-company-deletion/dashboard-company-deletion.html',\n+    controllerAs: \"DashboardCompanyDeletionCtrl\"\n+    controller:  ($uibModal, MnoeCurrentUser, MnoeOrganizations, MnoeAppInstances, MnoConfirm) ->\n+      vm = this\n+      vm.isDeletionOpen = false\n+\n+      vm.proceed = (reason, password) ->\n+        MnoeOrganizations.freeze(reason, password)\n+\n+      vm.requestDeletion =  () ->\n+        modalInstance = $uibModal.open(\n+          component: \"dashboardDeletionConfirm\",\n+          size: \"lg\",\n+          resolve:\n+            actionCb: () ->  vm.proceed","path":"src/app/components/dashboard-company-deletion/dashboard-company-deletion.coffee","position":18,"original_position":18,"commit_id":"50cc2b1afa351e532be51879961c1a1a68c8f440","original_commit_id":"50cc2b1afa351e532be51879961c1a1a68c8f440","user":{"login":"enizor","id":25256520,"avatar_url":"https://avatars0.githubusercontent.com/u/25256520?v=4","gravatar_id":"","url":"https://api.github.com/users/enizor","html_url":"https://github.com/enizor","followers_url":"https://api.github.com/users/enizor/followers","following_url":"https://api.github.com/users/enizor/following{/other_user}","gists_url":"https://api.github.com/users/enizor/gists{/gist_id}","starred_url":"https://api.github.com/users/enizor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enizor/subscriptions","organizations_url":"https://api.github.com/users/enizor/orgs","repos_url":"https://api.github.com/users/enizor/repos","events_url":"https://api.github.com/users/enizor/events{/privacy}","received_events_url":"https://api.github.com/users/enizor/received_events","type":"User","site_admin":false},"body":"Without it there is an error: explicit annotation required. The [docs](https://angular-ui.github.io/bootstrap/#ui-router-resolves) uses functions for each `resolve` property. I am not sure how it works, but I can't seem to make it work without a closure","created_at":"2017-10-19T05:45:26Z","updated_at":"2017-10-19T05:45:26Z","html_url":"https://github.com/maestrano/mno-enterprise-angular/pull/357#discussion_r145604150","pull_request_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/comments/145604150"},"html":{"href":"https://github.com/maestrano/mno-enterprise-angular/pull/357#discussion_r145604150"},"pull_request":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357"}},"in_reply_to_id":145598361},"pull_request":{"url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357","id":146350489,"html_url":"https://github.com/maestrano/mno-enterprise-angular/pull/357","diff_url":"https://github.com/maestrano/mno-enterprise-angular/pull/357.diff","patch_url":"https://github.com/maestrano/mno-enterprise-angular/pull/357.patch","issue_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/357","number":357,"state":"open","locked":false,"title":"[MNOE-669] [WIP] Organization deletion","user":{"login":"enizor","id":25256520,"avatar_url":"https://avatars0.githubusercontent.com/u/25256520?v=4","gravatar_id":"","url":"https://api.github.com/users/enizor","html_url":"https://github.com/enizor","followers_url":"https://api.github.com/users/enizor/followers","following_url":"https://api.github.com/users/enizor/following{/other_user}","gists_url":"https://api.github.com/users/enizor/gists{/gist_id}","starred_url":"https://api.github.com/users/enizor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enizor/subscriptions","organizations_url":"https://api.github.com/users/enizor/orgs","repos_url":"https://api.github.com/users/enizor/repos","events_url":"https://api.github.com/users/enizor/events{/privacy}","received_events_url":"https://api.github.com/users/enizor/received_events","type":"User","site_admin":false},"body":"Settings to freeze an organization. Needs to do more tasks in the backend (last bill, etc)","created_at":"2017-10-13T01:10:30Z","updated_at":"2017-10-19T05:45:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"907eca11d56dfd39c25d5876e631ce2a1f17a08f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357/commits","review_comments_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357/comments","review_comment_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/357/comments","statuses_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/statuses/50cc2b1afa351e532be51879961c1a1a68c8f440","head":{"label":"enizor:MNOE-669","ref":"MNOE-669","sha":"50cc2b1afa351e532be51879961c1a1a68c8f440","user":{"login":"enizor","id":25256520,"avatar_url":"https://avatars0.githubusercontent.com/u/25256520?v=4","gravatar_id":"","url":"https://api.github.com/users/enizor","html_url":"https://github.com/enizor","followers_url":"https://api.github.com/users/enizor/followers","following_url":"https://api.github.com/users/enizor/following{/other_user}","gists_url":"https://api.github.com/users/enizor/gists{/gist_id}","starred_url":"https://api.github.com/users/enizor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enizor/subscriptions","organizations_url":"https://api.github.com/users/enizor/orgs","repos_url":"https://api.github.com/users/enizor/repos","events_url":"https://api.github.com/users/enizor/events{/privacy}","received_events_url":"https://api.github.com/users/enizor/received_events","type":"User","site_admin":false},"repo":{"id":104312766,"name":"mno-enterprise-angular","full_name":"enizor/mno-enterprise-angular","owner":{"login":"enizor","id":25256520,"avatar_url":"https://avatars0.githubusercontent.com/u/25256520?v=4","gravatar_id":"","url":"https://api.github.com/users/enizor","html_url":"https://github.com/enizor","followers_url":"https://api.github.com/users/enizor/followers","following_url":"https://api.github.com/users/enizor/following{/other_user}","gists_url":"https://api.github.com/users/enizor/gists{/gist_id}","starred_url":"https://api.github.com/users/enizor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enizor/subscriptions","organizations_url":"https://api.github.com/users/enizor/orgs","repos_url":"https://api.github.com/users/enizor/repos","events_url":"https://api.github.com/users/enizor/events{/privacy}","received_events_url":"https://api.github.com/users/enizor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enizor/mno-enterprise-angular","description":"MNO Enterprise Angular Frontend ","fork":true,"url":"https://api.github.com/repos/enizor/mno-enterprise-angular","forks_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/forks","keys_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/teams","hooks_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/hooks","issue_events_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/issues/events{/number}","events_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/events","assignees_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/assignees{/user}","branches_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/branches{/branch}","tags_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/tags","blobs_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/languages","stargazers_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/stargazers","contributors_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/contributors","subscribers_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/subscribers","subscription_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/subscription","commits_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/contents/{+path}","compare_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/merges","archive_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/downloads","issues_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/issues{/number}","pulls_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/labels{/name}","releases_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/releases{/id}","deployments_url":"https://api.github.com/repos/enizor/mno-enterprise-angular/deployments","created_at":"2017-09-21T06:58:10Z","updated_at":"2017-09-21T06:58:12Z","pushed_at":"2017-10-19T03:51:01Z","git_url":"git://github.com/enizor/mno-enterprise-angular.git","ssh_url":"git@github.com:enizor/mno-enterprise-angular.git","clone_url":"https://github.com/enizor/mno-enterprise-angular.git","svn_url":"https://github.com/enizor/mno-enterprise-angular","homepage":null,"size":8707,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"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":"maestrano:2.0","ref":"2.0","sha":"b8df932a528b3d7d5c74e97e91ca1bc5e5d80c23","user":{"login":"maestrano","id":6322021,"avatar_url":"https://avatars3.githubusercontent.com/u/6322021?v=4","gravatar_id":"","url":"https://api.github.com/users/maestrano","html_url":"https://github.com/maestrano","followers_url":"https://api.github.com/users/maestrano/followers","following_url":"https://api.github.com/users/maestrano/following{/other_user}","gists_url":"https://api.github.com/users/maestrano/gists{/gist_id}","starred_url":"https://api.github.com/users/maestrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maestrano/subscriptions","organizations_url":"https://api.github.com/users/maestrano/orgs","repos_url":"https://api.github.com/users/maestrano/repos","events_url":"https://api.github.com/users/maestrano/events{/privacy}","received_events_url":"https://api.github.com/users/maestrano/received_events","type":"Organization","site_admin":false},"repo":{"id":46690748,"name":"mno-enterprise-angular","full_name":"maestrano/mno-enterprise-angular","owner":{"login":"maestrano","id":6322021,"avatar_url":"https://avatars3.githubusercontent.com/u/6322021?v=4","gravatar_id":"","url":"https://api.github.com/users/maestrano","html_url":"https://github.com/maestrano","followers_url":"https://api.github.com/users/maestrano/followers","following_url":"https://api.github.com/users/maestrano/following{/other_user}","gists_url":"https://api.github.com/users/maestrano/gists{/gist_id}","starred_url":"https://api.github.com/users/maestrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maestrano/subscriptions","organizations_url":"https://api.github.com/users/maestrano/orgs","repos_url":"https://api.github.com/users/maestrano/repos","events_url":"https://api.github.com/users/maestrano/events{/privacy}","received_events_url":"https://api.github.com/users/maestrano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/maestrano/mno-enterprise-angular","description":"MNO Enterprise Angular Frontend ","fork":false,"url":"https://api.github.com/repos/maestrano/mno-enterprise-angular","forks_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/forks","keys_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/teams","hooks_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/hooks","issue_events_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/events{/number}","events_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/events","assignees_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/assignees{/user}","branches_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/branches{/branch}","tags_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/tags","blobs_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/languages","stargazers_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/stargazers","contributors_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/contributors","subscribers_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/subscribers","subscription_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/subscription","commits_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/contents/{+path}","compare_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/merges","archive_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/downloads","issues_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues{/number}","pulls_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/labels{/name}","releases_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/releases{/id}","deployments_url":"https://api.github.com/repos/maestrano/mno-enterprise-angular/deployments","created_at":"2015-11-23T01:58:42Z","updated_at":"2016-10-25T07:18:53Z","pushed_at":"2017-10-19T03:51:02Z","git_url":"git://github.com/maestrano/mno-enterprise-angular.git","ssh_url":"git@github.com:maestrano/mno-enterprise-angular.git","clone_url":"https://github.com/maestrano/mno-enterprise-angular.git","svn_url":"https://github.com/maestrano/mno-enterprise-angular","homepage":null,"size":8764,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":10,"forks":22,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357"},"html":{"href":"https://github.com/maestrano/mno-enterprise-angular/pull/357"},"issue":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/357"},"comments":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/issues/357/comments"},"review_comments":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357/comments"},"review_comment":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/pulls/357/commits"},"statuses":{"href":"https://api.github.com/repos/maestrano/mno-enterprise-angular/statuses/50cc2b1afa351e532be51879961c1a1a68c8f440"}},"author_association":"NONE"}}
{"actor":{"display_login":"enizor"}}