mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
update warning
This commit is contained in:
parent
354220383d
commit
1164e9aa3f
|
@ -3,6 +3,7 @@
|
||||||
const Backbone = require('backbone');
|
const Backbone = require('backbone');
|
||||||
const kdbxweb = require('kdbxweb');
|
const kdbxweb = require('kdbxweb');
|
||||||
const OpenConfigView = require('./open-config-view');
|
const OpenConfigView = require('./open-config-view');
|
||||||
|
const AppSettingsModel = require('../models/app-settings-model');
|
||||||
const Keys = require('../const/keys');
|
const Keys = require('../const/keys');
|
||||||
const Alerts = require('../comp/alerts');
|
const Alerts = require('../comp/alerts');
|
||||||
const SecureInput = require('../comp/secure-input');
|
const SecureInput = require('../comp/secure-input');
|
||||||
|
@ -93,6 +94,21 @@ const OpenView = Backbone.View.extend({
|
||||||
});
|
});
|
||||||
this.inputEl = this.$el.find('.open__pass-input');
|
this.inputEl = this.$el.find('.open__pass-input');
|
||||||
this.passwordInput.setElement(this.inputEl);
|
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;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user