Updated useraccounts, character settings to Polymer 1

This commit is contained in:
Stefan Zermatten
2017-01-19 15:43:48 +02:00
parent 137a94f251
commit c4a488a176
81 changed files with 570 additions and 2019 deletions

View File

@@ -8,15 +8,15 @@ Template.profile.helpers({
});
Template.profile.events({
"tap #username": function(){
"click .username-edit": function(event, instance){
if (this._id === Meteor.userId()){
GlobalUI.showDialog({
heading: "Change Username",
pushDialogStack({
template: "usernameDialog",
element: event.currentTarget,
});
}
},
"tap #verifyEmail": function(event, instance){
"click #at-resend-verification-email": function(event, instance){
if (!Meteor.user()) return;
Accounts.sendVerificationEmail(Meteor.userId(), this.address);
GlobalUI.toast({