first version of import GUI

This commit is contained in:
Lukas F. Hartmann
2018-04-12 17:41:22 +02:00
parent 08b81d5ff4
commit 76f85aa538
7 changed files with 81 additions and 27 deletions

View File

@@ -8,13 +8,20 @@ SpacedeckAccount = {
account_confirmed_sent: false,
account_tab: 'invoices',
password_change_error: null,
feedback_text: ""
feedback_text: "",
importables: [], // spacedeck.com zip import files
},
methods: {
show_account: function(user) {
show_account: function() {
this.activate_dropdown('account');
},
start_zip_import: function(f) {
if (confirm("Your archive will be imported in the background. This can take a few minutes. You can continue using Spacedeck in the meantime.")) {
import_zip(this.user, f);
}
},
account_save_user_digest: function(val) {
this.user.prefs_email_digest = val;
this.save_user(function() {