From 04071606cd387debba1a2948c76237092dbf267d Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Thu, 15 Aug 2024 17:03:02 +0200 Subject: [PATCH 1/4] fix global search in shhow capabilities by function --- web/explorer/src/components/FunctionCapabilities.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/explorer/src/components/FunctionCapabilities.vue b/web/explorer/src/components/FunctionCapabilities.vue index 8153b133..4372da33 100644 --- a/web/explorer/src/components/FunctionCapabilities.vue +++ b/web/explorer/src/components/FunctionCapabilities.vue @@ -7,7 +7,7 @@ size="small" :filters="filters" :filterMode="filterMode" - :globalFilterFields="['funcaddr', 'ruleName', 'namespace']" + :globalFilterFields="['address', 'rule', 'namespace']" > diff --git a/web/explorer/src/components/RuleMatchesTable.vue b/web/explorer/src/components/RuleMatchesTable.vue index 9b84fc14..71daf622 100644 --- a/web/explorer/src/components/RuleMatchesTable.vue +++ b/web/explorer/src/components/RuleMatchesTable.vue @@ -339,11 +339,6 @@ onMounted(() => { visibility: hidden !important; height: 1.3rem; } -/* Disable the toggle button for rules */ -:deep(.p-treetable-tbody > tr:is([aria-level="1"]) > td > div > .p-treetable-node-toggle-button) { - visibility: collapse !important; - height: 1.3rem; -} /* Make all matches nodes (i.e. not rule names) slightly smaller, and tighten up the spacing between the rows */ diff --git a/web/explorer/src/views/AnalysisView.vue b/web/explorer/src/views/AnalysisView.vue index 85efb2e2..fc020fd3 100644 --- a/web/explorer/src/views/AnalysisView.vue +++ b/web/explorer/src/views/AnalysisView.vue @@ -18,12 +18,14 @@ v-if="doc.meta.flavor === 'static' && showCapabilitiesByFunctionOrProcess && !showNamespaceChart" :data="doc" :show-library-rules="showLibraryRules" + :show-column-filters="showColumnFilters" /> From 8ca88d94d5e47c7ed3a67f51e301dbfd8c5f4273 Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Fri, 16 Aug 2024 14:14:20 +0200 Subject: [PATCH 4/4] disable show lib rules button if none --- web/explorer/src/components/SettingsPanel.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/explorer/src/components/SettingsPanel.vue b/web/explorer/src/components/SettingsPanel.vue index 94c0fefd..9dddd2f0 100644 --- a/web/explorer/src/components/SettingsPanel.vue +++ b/web/explorer/src/components/SettingsPanel.vue @@ -16,13 +16,14 @@ v-model="showLibraryRules" inputId="showLibraryRules" :binary="true" - :disabled="showNamespaceChart" + :disabled="showNamespaceChart || libraryRuleMatchesCount === 0" />