feat: estendi badge match alle ricerche per tag su edit_ruleset
Le pagine edit_ruleset aperte da una ricerca per hosttag usano title="Matches" invece di title^="This rule matches". Esteso il selettore CSS per coprire entrambi i casi. bump version to 2.7.1
This commit is contained in:
parent
9d479a1cb7
commit
636860223c
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Checkmk SwissKnife
|
// @name Checkmk SwissKnife
|
||||||
// @namespace https://luigidacunto.com/
|
// @namespace https://luigidacunto.com/
|
||||||
// @version 2.7.0
|
// @version 2.7.1
|
||||||
// @description Raccolta di miglioramenti all'interfaccia di Checkmk WATO. Ogni fix o enhancement viene aggiunto qui come feature indipendente.
|
// @description Raccolta di miglioramenti all'interfaccia di Checkmk WATO. Ogni fix o enhancement viene aggiunto qui come feature indipendente.
|
||||||
// @author Luigi D'Acunto
|
// @author Luigi D'Acunto
|
||||||
// @homepageURL https://git.luigidacunto.com/tools/checkmk-swissknife
|
// @homepageURL https://git.luigidacunto.com/tools/checkmk-swissknife
|
||||||
|
|
@ -638,7 +638,7 @@
|
||||||
function highlightRuleMatchStatus(doc) {
|
function highlightRuleMatchStatus(doc) {
|
||||||
if (doc.body.dataset.cmkMatchHighlight === '1') return;
|
if (doc.body.dataset.cmkMatchHighlight === '1') return;
|
||||||
|
|
||||||
const matchImgs = doc.querySelectorAll('img.icon[title^="This rule matches"]');
|
const matchImgs = doc.querySelectorAll('img.icon[title^="This rule matches"], img.icon[title="Matches"]');
|
||||||
const noMatchImgs = doc.querySelectorAll('img.icon[title^="This rule does not match"]');
|
const noMatchImgs = doc.querySelectorAll('img.icon[title^="This rule does not match"]');
|
||||||
if (!matchImgs.length && !noMatchImgs.length) return;
|
if (!matchImgs.length && !noMatchImgs.length) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue