{"action":"opened","issue":{"url":"https://api.github.com/repos/codebuddies/codebuddies/issues/824","repository_url":"https://api.github.com/repos/codebuddies/codebuddies","labels_url":"https://api.github.com/repos/codebuddies/codebuddies/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/codebuddies/codebuddies/issues/824/comments","events_url":"https://api.github.com/repos/codebuddies/codebuddies/issues/824/events","html_url":"https://github.com/codebuddies/codebuddies/issues/824","id":314762759,"number":824,"title":"Remove repetitive code.","user":{"login":"distalx","id":11193792,"avatar_url":"https://avatars3.githubusercontent.com/u/11193792?v=4","gravatar_id":"","url":"https://api.github.com/users/distalx","html_url":"https://github.com/distalx","followers_url":"https://api.github.com/users/distalx/followers","following_url":"https://api.github.com/users/distalx/following{/other_user}","gists_url":"https://api.github.com/users/distalx/gists{/gist_id}","starred_url":"https://api.github.com/users/distalx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distalx/subscriptions","organizations_url":"https://api.github.com/users/distalx/orgs","repos_url":"https://api.github.com/users/distalx/repos","events_url":"https://api.github.com/users/distalx/events{/privacy}","received_events_url":"https://api.github.com/users/distalx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T18:11:25Z","updated_at":"2018-04-16T18:11:25Z","closed_at":null,"author_association":"COLLABORATOR","body":"In codebase, several times we are using `Meteor.loginWithSlack(options);`. it can be replace with a `continue-popup`. [this](https://github.com/codebuddies/codebuddies/blob/bba20e9df58fc7f3179281815ed6db67c87f44b3/client/layouts/layout.js#L2) \r\n\r\nFor example [Here](https://github.com/codebuddies/codebuddies/blob/bba20e9df58fc7f3179281815ed6db67c87f44b3/client/templates/hangout/hangout-item.js#L64), in `.clone-hangout` event helper we are checking that if user is not logged in then display a `sweetAlert` and ask them to log in.\r\n\r\nThat could be very roughly :\r\n\r\n```\r\n<button class=\"{{#if currentUser}} clone-hangout {{else}} continue-popup {{/if}}\"> \r\n   clone-hangout\r\n</button>\r\n```\r\n\r\n"}}
{"actor":{"display_login":"distalx"}}