You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by sa...@apache.org on 2019/07/25 11:14:18 UTC

[metron] branch feature/METRON-1856-parser-aggregation updated: METRON-2125 [UI] Making changes visible in the parser list by marking changed items (sardell) closes apache/metron#1422

This is an automated email from the ASF dual-hosted git repository.

sardell pushed a commit to branch feature/METRON-1856-parser-aggregation
in repository https://gitbox.apache.org/repos/asf/metron.git


The following commit(s) were added to refs/heads/feature/METRON-1856-parser-aggregation by this push:
     new c23544d  METRON-2125 [UI] Making changes visible in the parser list by marking changed items (sardell) closes apache/metron#1422
c23544d is described below

commit c23544d85d2e19afaafcb3566a7bfa7575af9ae0
Author: sardell <sh...@gmail.com>
AuthorDate: Thu Jul 25 13:13:50 2019 +0200

    METRON-2125 [UI] Making changes visible in the parser list by marking changed items (sardell) closes apache/metron#1422
---
 .../sensor-parser-list.component.html              |  6 +++++
 .../sensor-parser-list.component.scss              | 26 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.html b/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.html
index d55618c..16c3a03 100644
--- a/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.html
+++ b/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.html
@@ -54,6 +54,12 @@
     <tbody>
           'active': isSelected(sensor),
           'parent': sensor.isGroup,
+          'dragged-over': sensor.config.getName() === draggedOverElementId && !sensor.isRunning && !sensor.startStopInProgress,
+          'drop-not-allowed': sensor.config.getName() === draggedOverElementId && sensor.isRunning && !sensor.startStopInProgress,
+          'dirty': sensor.isDirty,
+          'deleted': sensor.isDeleted,
+          'phantom': sensor.isPhantom
+        }"
       <td>{{ getParserType(sensor.config) }}</td>
       <td [ngClass]="{'warning-text': (sensor.status == 'Stopped' || sensor.status == 'Disabled')}">{{ sensor.status }}</td>
       <td>{{ sensor.latency }}</td>
diff --git a/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.scss b/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.scss
index c17939a..4e44bb0 100644
--- a/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.scss
+++ b/metron-interface/metron-config/src/app/sensors/sensor-parser-list/sensor-parser-list.component.scss
@@ -19,3 +19,29 @@
 .config-table {
   table-layout: fixed;
 }
+
+.config-table {
+
+  tr {
+    border-bottom: 1px solid #404040;
+    border-left: 4px solid transparent;
+  }
+
+  .dirty {
+    background-color: rgba(255, 255, 0, 0.1);
+    border-left: 4px solid yellow;
+  }
+
+  .phantom {
+    background-color: rgba(0, 255, 0, 0.1);
+    border-left: 4px solid green;
+  }
+
+  .deleted {
+    background-color: rgba(255, 0, 0, 0.1);
+    border-left: 4px solid red;
+  }
+
+}
+
+}