From 1339e26cd95c78d9d0777ea19aa049604298f73c Mon Sep 17 00:00:00 2001 From: Harald Leithner Date: Thu, 26 Dec 2019 20:30:53 +0100 Subject: [PATCH] Allow label to trigger ignore checkbox Add an unique id to the ignoreCheckbox in the banner and update the "for" attribute in the label. --- keepassxc-browser/content/banner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/content/banner.js b/keepassxc-browser/content/banner.js index ab2cce6..0554068 100644 --- a/keepassxc-browser/content/banner.js +++ b/keepassxc-browser/content/banner.js @@ -69,8 +69,8 @@ kpxcBanner.create = async function(credentials = {}) { const dismissButton = kpxcUI.createElement('button', 'kpxc-button kpxc-red-button', { 'id': 'kpxc-banner-btn-dismiss' }, tr('popupButtonDismiss')); const separator = kpxcUI.createElement('div', 'kpxc-separator'); - const ignoreCheckbox = kpxcUI.createElement('input', 'kpxc-checkbox', { type: 'checkbox', name: 'ignoreCheckbox' }); - const checkboxLabel = kpxcUI.createElement('label', 'kpxc-checkbox-label', { for: 'ignoreCheckbox' }, tr('popupButtonIgnore')); + const ignoreCheckbox = kpxcUI.createElement('input', 'kpxc-checkbox', { type: 'checkbox', name: 'ignoreCheckbox', id: 'kpxc-banner-ignoreCheckbox' }); + const checkboxLabel = kpxcUI.createElement('label', 'kpxc-checkbox-label', { for: 'kpxc-banner-ignoreCheckbox' }, tr('popupButtonIgnore')); // No existing credentials to update --> disable Update button if (credentials.list.length === 0) {