Skip to content

Commit

Permalink
navigation card for all screens
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Oct 27, 2017
1 parent ecb10e6 commit 947dbf4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mrt:jquery-ui
rajit:bootstrap3-datepicker
mystor:device-detection
[email protected]
[email protected]
# [email protected]
velocityjs:velocityjs

# react
Expand Down
2 changes: 0 additions & 2 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ meteorhacks:[email protected]
meteorhacks:[email protected]
meteorspark:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand Down Expand Up @@ -125,7 +124,6 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
tap:[email protected]
[email protected]
[email protected]
Expand Down
1 change: 1 addition & 0 deletions imports/ui/templates/components/identity/avatar/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ Template.avatar.events({
const data = Meteor.user().profile;
data.configured = false;
Meteor.users.update(Meteor.userId(), { $set: { profile: data } });
Session.set('cardNavigation', true);
},
'click #removeSignature'() {
if (Meteor.Device.isPhone()) {
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/templates/components/identity/login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Template.login.events({

Template.cardNavigation.events({
'click #card-back'() {
const data = Meteor.user().profile;
Session.set('newCountry', undefined);
data.configured = true;
Meteor.users.update(Meteor.userId(), { $set: { profile: data } });
Session.set('cardNavigation', false);
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@
</div>
</form>
</div>
<!--<div>{{_ "edit-later"}} <a id='skip-step'>{{_ "skip-step"}}</a>.</div>-->
</div>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Template.profileEditor.events({
Session.set('newCountry', undefined);
data.configured = true;
Meteor.users.update(Meteor.userId(), { $set: { profile: data } });
Session.set('cardNavigation', false);
},
'click #save-profile'() {
if (document.getElementById('editFirstName').value === '') {
Expand Down

0 comments on commit 947dbf4

Please sign in to comment.