port most backend functionality, further cleanups, basic electron support
This commit is contained in:
@@ -13,19 +13,17 @@ SpacedeckAccount = {
|
||||
methods: {
|
||||
show_account: function(user) {
|
||||
this.activate_dropdown('account');
|
||||
this.load_subscription();
|
||||
this.load_billing();
|
||||
},
|
||||
|
||||
account_save_user_digest: function(val) {
|
||||
this.user.preferences.daily_digest = val;
|
||||
this.save_user(function(){
|
||||
this.user.prefs_email_digest = val;
|
||||
this.save_user(function() {
|
||||
});
|
||||
},
|
||||
|
||||
account_save_user_notifications: function(val) {
|
||||
this.user.preferences.email_notifications = val;
|
||||
this.save_user(function(){
|
||||
this.user.prefs_email_notifications = val;
|
||||
this.save_user(function() {
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -170,7 +170,6 @@ var SpacedeckRoutes = {
|
||||
location.href = "/";
|
||||
} else {
|
||||
this.active_view = "account";
|
||||
this.load_subscription();
|
||||
}
|
||||
}.bind(this)
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ function boot_spacedeck() {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
document.addEventListener("DOMContentLoaded",function() {
|
||||
window.smoke = smoke;
|
||||
window.alert = smoke.alert;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user