{"action":"created","comment":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/comments/68950746","id":68950746,"diff_hunk":"@@ -141,13 +141,20 @@ function Ctrl(\n   };\n \n   self.confirmDeleteCredential = function(err, result) {\n+    var credentialServiceOptions = {};\n+    if(!compareHost(self.credential.id)) {\n+      credentialServiceOptions.url = self.altUpdateEndpoint + '?id=' +\n+        encodeURIComponent(self.credential.id);\n+    }\n     if(!err && result === 'ok') {\n       self.credential.deleted = true;\n-      // wait to delete so modal can transition\n-      brCredentialService.collection.del(self.credential.id, {delay: 400})\n+      brCredentialService.collection\n+        .del(self.credential.id, credentialServiceOptions)","path":"credential-viewer-component.js","position":14,"original_position":14,"commit_id":"5023e486d43709d136d50984d5acc06dcadf0ffd","original_commit_id":"5023e486d43709d136d50984d5acc06dcadf0ffd","user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"body":"This removed the delay, did we need that? I don't remember it's purpose despite the comment.","created_at":"2016-06-29T14:01:42Z","updated_at":"2016-06-29T14:01:42Z","html_url":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8#discussion_r68950746","pull_request_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/comments/68950746"},"html":{"href":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8#discussion_r68950746"},"pull_request":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8","id":75651510,"html_url":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8","diff_url":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8.diff","patch_url":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8.patch","issue_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/8","number":8,"state":"open","locked":false,"title":"Fix credential deletion.","user":{"login":"mattcollier","id":902041,"avatar_url":"https://avatars.githubusercontent.com/u/902041?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcollier","html_url":"https://github.com/mattcollier","followers_url":"https://api.github.com/users/mattcollier/followers","following_url":"https://api.github.com/users/mattcollier/following{/other_user}","gists_url":"https://api.github.com/users/mattcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcollier/subscriptions","organizations_url":"https://api.github.com/users/mattcollier/orgs","repos_url":"https://api.github.com/users/mattcollier/repos","events_url":"https://api.github.com/users/mattcollier/events{/privacy}","received_events_url":"https://api.github.com/users/mattcollier/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-29T13:51:08Z","updated_at":"2016-06-29T14:01:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"627b2f4cb305d144c2fb7edee3a8b8a370ea6680","assignee":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"assignees":[{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8/commits","review_comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8/comments","review_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/8/comments","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/statuses/5023e486d43709d136d50984d5acc06dcadf0ffd","head":{"label":"digitalbazaar:deleteCredential","ref":"deleteCredential","sha":"5023e486d43709d136d50984d5acc06dcadf0ffd","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":37619131,"name":"bedrock-angular-credential","full_name":"digitalbazaar/bedrock-angular-credential","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-angular-credential","description":"Bedrock Credential support","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/deployments","created_at":"2015-06-17T20:29:21Z","updated_at":"2016-02-05T18:01:40Z","pushed_at":"2016-06-29T13:59:09Z","git_url":"git://github.com/digitalbazaar/bedrock-angular-credential.git","ssh_url":"git@github.com:digitalbazaar/bedrock-angular-credential.git","clone_url":"https://github.com/digitalbazaar/bedrock-angular-credential.git","svn_url":"https://github.com/digitalbazaar/bedrock-angular-credential","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"digitalbazaar:master","ref":"master","sha":"70007fedacc030fe784c32256c0746e50177a759","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":37619131,"name":"bedrock-angular-credential","full_name":"digitalbazaar/bedrock-angular-credential","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-angular-credential","description":"Bedrock Credential support","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/deployments","created_at":"2015-06-17T20:29:21Z","updated_at":"2016-02-05T18:01:40Z","pushed_at":"2016-06-29T13:59:09Z","git_url":"git://github.com/digitalbazaar/bedrock-angular-credential.git","ssh_url":"git@github.com:digitalbazaar/bedrock-angular-credential.git","clone_url":"https://github.com/digitalbazaar/bedrock-angular-credential.git","svn_url":"https://github.com/digitalbazaar/bedrock-angular-credential","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8"},"html":{"href":"https://github.com/digitalbazaar/bedrock-angular-credential/pull/8"},"issue":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/8"},"comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-credential/statuses/5023e486d43709d136d50984d5acc06dcadf0ffd"}}}}
{"actor":{"display_login":"dlongley"}}