mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #54 from keepassxreboot/login_notification
Add a new option showLoginNotifications
This commit is contained in:
commit
9508ce7bc9
3 changed files with 12 additions and 3 deletions
|
|
@ -239,7 +239,7 @@ browserAction.setRememberPopup = function(tabId, username, password, url, userna
|
|||
|
||||
browserAction.show(null, {'id': id});
|
||||
|
||||
if (page.settings.showNotifications) {
|
||||
if (page.settings.showLoginNotifications) {
|
||||
showNotification('Create or modify the credentials by clicking on the extension icon.');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ const defaultSettings = {
|
|||
usePasswordGenerator: true,
|
||||
autoFillSingleEntry: false,
|
||||
autoRetrieveCredentials: true,
|
||||
showNotifications: true
|
||||
showNotifications: true,
|
||||
showLoginNotifications: true
|
||||
};
|
||||
|
||||
var page = {};
|
||||
|
|
@ -38,6 +39,9 @@ page.initSettings = function() {
|
|||
if (!('showNotifications' in page.settings)) {
|
||||
page.settings.showNotifications = defaultSettings.showNotifications;
|
||||
}
|
||||
if (!('showLoginNotifications' in page.settings)) {
|
||||
page.settings.showLoginNotifications = defaultSettings.showLoginNotifications;
|
||||
}
|
||||
browser.storage.local.set({'settings': page.settings});
|
||||
resolve(page.settings);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -130,7 +130,12 @@
|
|||
<label class="checkbox">
|
||||
<input type="checkbox" name="showNotifications" value="true" /> Show notifications.
|
||||
</label>
|
||||
<span class="help-block">Allow KeePassXC-Browser to show notifications when user interaction is needed from the extension icon.</span>
|
||||
<span class="help-block">Show notifications for errors and when user interaction is required.</span>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="showLoginNotifications" value="true" /> Show a notification when new credentials can be saved to the database.
|
||||
</label>
|
||||
</div>
|
||||
</p>
|
||||
<hr />
|
||||
|
|
|
|||
Loading…
Reference in a new issue