You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by to...@apache.org on 2018/08/17 20:01:51 UTC

[ambari] branch trunk updated: [AMBARI-24490] [Log Search UI] Time Histogram Chart keep invert grey selection area when no selection happened (#2095)

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

tobiasistvan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6f60dc2  [AMBARI-24490] [Log Search UI] Time Histogram Chart keep invert grey selection area when no selection happened (#2095)
6f60dc2 is described below

commit 6f60dc224412321345db81fea35a2e4a23474834
Author: Istvan Tobias <to...@gmail.com>
AuthorDate: Fri Aug 17 22:01:47 2018 +0200

    [AMBARI-24490] [Log Search UI] Time Histogram Chart keep invert grey selection area when no selection happened (#2095)
---
 .../src/app/classes/components/graph/time-graph.component.ts           | 2 +-
 ambari-logsearch/ambari-logsearch-web/src/index.html                   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
index 7f9220a..70412b2 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
@@ -250,9 +250,9 @@ export class TimeGraphComponent extends GraphComponent implements OnInit {
           const dateRange: [number, number] = this.getTimeRangeByXRanges(startX, endX);
           this.selectArea.emit(dateRange);
           this.dragArea.remove();
-          this.clearInvertDragArea();
           this.setChartTimeGap(new Date(dateRange[0]), new Date(dateRange[1]));
         }
+        this.clearInvertDragArea();
       })
     );
     d3.selectAll(`svg#${this.svgId} .value, svg#${this.svgId} .axis`).call(d3.drag().on('start', (): void => {
diff --git a/ambari-logsearch/ambari-logsearch-web/src/index.html b/ambari-logsearch/ambari-logsearch-web/src/index.html
index 0895301..0f8ff09 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/index.html
+++ b/ambari-logsearch/ambari-logsearch-web/src/index.html
@@ -25,6 +25,9 @@
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="icon" type="image/x-icon" href="favicon.ico">
   <style>
+    body {
+      background-color: #ECECEC;
+    }
     .spinner {
       width: 40px;
       height: 40px;