Change default token to empty string instead of undefined

fixes #329
This commit is contained in:
lalyos 2014-09-08 15:13:54 +02:00
parent 019f66c0b1
commit b03ce98749
2 changed files with 2 additions and 0 deletions

View File

@ -501,6 +501,7 @@ App.SettingsController = Ember.ObjectController.extend({
if (window.confirm("Are your sure you want to reset your settings?")) { if (window.confirm("Are your sure you want to reset your settings?")) {
localStorage.clear(); localStorage.clear();
controller.set('content', App.Settings.create()); controller.set('content', App.Settings.create());
App.set('settings.token', '');
notify('Settings reset', 3000); notify('Settings reset', 3000);
this.set('isLoading', false); this.set('isLoading', false);
} }

View File

@ -8,6 +8,7 @@ Ember.Application.initializer({
initialize: function(container, application) { initialize: function(container, application) {
application.set('settings', App.Settings.create()); application.set('settings', App.Settings.create());
App.set('settings.token', '');
} }
}); });