mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Modified logic por Alerts section header
This commit is contained in:
parent
2ef4db742a
commit
8be6b2c09d
@ -1,4 +1,4 @@
|
||||
<div flex="auto" layout="column" ng-if="configurationTab === 'alerts'" ng-init="switchConfigurationSubTab('general-alerts')">
|
||||
<div flex="auto" layout="column" ng-if="configurationTab === 'alerts'" ng-init="(!agent || agent.id === '000') ? switchConfigurationSubTab('general-alerts') : switchConfigurationSubTab('labels')">
|
||||
|
||||
<!-- Headline -->
|
||||
<div layout="column" layout-padding>
|
||||
@ -14,11 +14,11 @@
|
||||
class="wz-nav-bar"
|
||||
md-selected-nav-item="configurationSubTab"
|
||||
nav-bar-aria-label="Alerts navigation links">
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('general-alerts')" name="general-alerts">General</md-nav-item>
|
||||
<md-nav-item ng-if="!agent || agent.id === '000'" class="wz-nav-item" md-nav-click="switchConfigurationSubTab('general-alerts')" name="general-alerts">General</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('labels')" name="labels">Labels</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('email-alerts')" name="email-alerts">Email alerts</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('reports')" name="reports">Reports</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('syslog')" name="syslog">Syslog output</md-nav-item>
|
||||
<md-nav-item ng-if="!agent || agent.id === '000'" class="wz-nav-item" md-nav-click="switchConfigurationSubTab('email-alerts')" name="email-alerts">Email alerts</md-nav-item>
|
||||
<md-nav-item ng-if="!agent || agent.id === '000'" class="wz-nav-item" md-nav-click="switchConfigurationSubTab('reports')" name="reports">Reports</md-nav-item>
|
||||
<md-nav-item ng-if="!agent || agent.id === '000'" class="wz-nav-item" md-nav-click="switchConfigurationSubTab('syslog')" name="syslog">Syslog output</md-nav-item>
|
||||
</md-nav-bar>
|
||||
<!-- End Alerts navigation bar -->
|
||||
|
||||
|
@ -24,57 +24,57 @@
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML()">XML</span>
|
||||
</div>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
|
||||
<div flex="auto" layout="row" class="wz-margin-top-10">
|
||||
|
||||
<!-- List container -->
|
||||
<div flex="30" layout="column">
|
||||
|
||||
|
||||
<md-list flex="auto" class="wz-item-list">
|
||||
<md-list-item class="wz-text-link" ng-click="updateSelectedItem($index)" ng-repeat="item in currentConfig['mail-alerts'].email_alerts">{{item.email_to}}</md-list-item>
|
||||
</md-list>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- End list container -->
|
||||
|
||||
|
||||
<!-- Detail container -->
|
||||
<div flex layout="column" ng-if="currentConfig['mail-alerts'].email_alerts.length">
|
||||
|
||||
|
||||
<div flex="auto" class="wz-item-detail">
|
||||
<wz-config-item
|
||||
label="Send alerts to this email address"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].email_to">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Minimum severity level to send the alert by email"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].level">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send only alerts that belong to one of these groups"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].group">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send alerts when they match this event location"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].event_location">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Format for email alerts"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].format">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send only alerts that belong to one of these rule IDs"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].rule_id">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Disable delayed email delivery"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].do_not_delay">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Disable alerts grouping into the same email"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].do_not_group">
|
||||
</wz-config-item>
|
||||
label="Send alerts to this email address"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].email_to">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Minimum severity level to send the alert by email"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].level">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send only alerts that belong to one of these groups"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].group">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send alerts when they match this event location"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].event_location">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Format for email alerts"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].format">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Send only alerts that belong to one of these rule IDs"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].rule_id">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Disable delayed email delivery"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].do_not_delay">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Disable alerts grouping into the same email"
|
||||
value="currentConfig['mail-alerts'].email_alerts[selectedItem].do_not_group">
|
||||
</wz-config-item>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- End detail container -->
|
||||
</div>
|
||||
|
@ -80,13 +80,19 @@
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<md-list layout="row" layout-wrap>
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line">
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id === '000'">
|
||||
<div class="md-list-item-text">
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('alerts',[{component:'analysis',configuration:'alerts'},{component:'agent',configuration:'labels'},{component:'mail',configuration:'alerts'}, {component:'csyslog',configuration:'csyslog'}])">Alerts</h3>
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('alerts',[{component:'analysis',configuration:'alerts'},{component:'analysis',configuration:'labels'},{component:'mail',configuration:'alerts'}, {component:'csyslog',configuration:'csyslog'}])">Alerts</h3>
|
||||
<p>Configure everything related to the alerts and their format</p>
|
||||
</div>
|
||||
</md-list-item>
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id==='000'">
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="agent && agent.id !== '000'">
|
||||
<div class="md-list-item-text">
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('alerts',[{component:'agent',configuration:'labels'}])">Alerts</h3>
|
||||
<p>Configure everything related to the alerts and their format</p>
|
||||
</div>
|
||||
</md-list-item>
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id === '000'">
|
||||
<div class="md-list-item-text">
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('integrations',[{component:'integrator',configuration:'integration'}])">Integrations</h3>
|
||||
<p>Slack, VirusTotal and PagerDuty integrations with external APIs</p>
|
||||
@ -142,7 +148,7 @@
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<md-list layout="row" layout-wrap>
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id==='000'">
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id === '000'">
|
||||
<div class="md-list-item-text">
|
||||
<h3 class="wz-text-link" ng-click="switchWodle('vulnerability-detector')">Vulnerabilities</h3>
|
||||
<p>Discover what applications in your environment are affected by well-known vulnerabilities</p>
|
||||
@ -197,7 +203,7 @@
|
||||
<p>Identification of changes in content, permissions, ownership, and attributes of files</p>
|
||||
</div>
|
||||
</md-list-item>
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id==='000'">
|
||||
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line" ng-if="!agent || agent.id === '000'">
|
||||
<div class="md-list-item-text">
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('agentless',[{component:'agentless',configuration:'agentless'}])">Agentless</h3>
|
||||
<p>Run integrity checks on devices such as routers, firewalls, switches, etc.</p>
|
||||
@ -210,7 +216,7 @@
|
||||
<!-- End log data analysis card -->
|
||||
|
||||
<!-- Cloud security monitoring card -->
|
||||
<md-card class="wz-md-card" ng-if="!agent || agent.id==='000'">
|
||||
<md-card class="wz-md-card" ng-if="!agent || agent.id === '000'">
|
||||
<md-card-content>
|
||||
<span class="font-size-16">Cloud security monitoring</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
Loading…
Reference in New Issue
Block a user