removed version upgrade warning

This commit is contained in:
antelle 2017-02-05 16:15:14 +01:00
parent acbb36fc46
commit 8550a2fc64
2 changed files with 3 additions and 15 deletions

View File

@ -63,6 +63,9 @@ const AppSettingsModel = Backbone.Model.extend({
if (data.rememberKeyFiles === true) {
data.rememberKeyFiles = 'data';
}
if (data.versionWarningShown) {
delete data.versionWarningShown;
}
},
save: function() {

View File

@ -94,21 +94,6 @@ const OpenView = Backbone.View.extend({
});
this.inputEl = this.$el.find('.open__pass-input');
this.passwordInput.setElement(this.inputEl);
if (!this.versionWarningShown) {
// TODO: remove in v1.5
this.versionWarningShown = AppSettingsModel.instance.get('versionWarningShown');
if (!this.versionWarningShown) {
AppSettingsModel.instance.set('versionWarningShown', true);
this.versionWarningShown = true;
if (this.model.fileInfos.length) {
Alerts.info({
header: 'KeeWeb updated',
body: 'There was a major update of KeeWeb. Please make sure you have a backup of your password files!'
});
}
}
}
return this;
},