Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 732 study group prompt login #736

Merged
2 changes: 1 addition & 1 deletion client/templates/study_groups/all_study_groups.html
Expand Up @@ -7,7 +7,7 @@
<div class="row">
<div class="col-md-12 align-center">
<h2>Study Groups</h2>
<div class="btn btn-cb2" id="createGroupButton"> {{_ "start_new_group"}} </div>
<div class="btn btn-cb2 {{#unless currentUser}} continue-popup {{/unless}}" id="createGroupButton"> {{_ "start_new_group"}} </div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this id="{{#if currentUser}}createGroupButton{{/if}}". and we won't be needing a
if (Meteor.userId()) { block in our helper function.
Thanks.

</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion client/templates/study_groups/all_study_groups.js
Expand Up @@ -78,6 +78,8 @@ Template.allStudyGroups.events({
template.studyGroupsFilter.set(studyGroupsFilter);
},
'click #createGroupButton': function(event) {
Modal.show('newStudyGroupModal');
if (Meteor.userId()) {
Modal.show('newStudyGroupModal');
}
}
});