1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-22 07:16:38 +02:00

update warning

This commit is contained in:
antelle 2017-02-04 15:27:39 +01:00
parent 354220383d
commit 1164e9aa3f

View File

@ -3,6 +3,7 @@
const Backbone = require('backbone');
const kdbxweb = require('kdbxweb');
const OpenConfigView = require('./open-config-view');
const AppSettingsModel = require('../models/app-settings-model');
const Keys = require('../const/keys');
const Alerts = require('../comp/alerts');
const SecureInput = require('../comp/secure-input');
@ -93,6 +94,21 @@ 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;
},