@@ -36,4 +36,4 @@
-
\ No newline at end of file
+
diff --git a/src/legacy/core_plugins/console/public/src/controllers/sense_controller.js b/src/legacy/core_plugins/console/public/src/controllers/sense_controller.js
index 003458868f248..2011f23d11cc6 100644
--- a/src/legacy/core_plugins/console/public/src/controllers/sense_controller.js
+++ b/src/legacy/core_plugins/console/public/src/controllers/sense_controller.js
@@ -106,6 +106,10 @@ module.controller('SenseController', function SenseController($scope, $timeout,
$scope.showHistory = !$scope.showHistory;
};
+ $scope.closeHistory = () => {
+ $scope.showHistory = false;
+ };
+
$scope.topNavMenu = getTopNavConfig($scope, $scope.toggleHistory);
$scope.openDocumentation = () => {
diff --git a/src/legacy/core_plugins/console/public/src/directives/_history.scss b/src/legacy/core_plugins/console/public/src/directives/_history.scss
index 0d1e9315c3978..1d13d366eec08 100644
--- a/src/legacy/core_plugins/console/public/src/directives/_history.scss
+++ b/src/legacy/core_plugins/console/public/src/directives/_history.scss
@@ -1,5 +1,8 @@
-sense-history {
- padding: $euiSizeS;
+@import 'src/legacy/ui/public/styles/_styling_constants';
+
+.conHistory {
+ @include euiBottomShadow;
+ padding: $euiSizeM;
}
.conHistory__body {
@@ -9,10 +12,15 @@ sense-history {
.conHistory__footer {
- text-align: right;
+ display: flex;
+ justify-content: space-between;
padding-top: $euiSize;
}
+.conHistory__footerButtonsRight {
+ text-align: right;
+}
+
.conHistory__reqs,
.conHistory__viewer {
flex: 0 0 50%;
diff --git a/src/legacy/core_plugins/console/public/src/directives/history.html b/src/legacy/core_plugins/console/public/src/directives/history.html
index e13642225a5f3..4c3adebb54ea9 100644
--- a/src/legacy/core_plugins/console/public/src/directives/history.html
+++ b/src/legacy/core_plugins/console/public/src/directives/history.html
@@ -1,53 +1,64 @@
-
+
+
-
-
- -
+
- {{ history.describeReq(req) }}
-
-
-
+
+ {{ history.describeReq(req) }}
+
+
+
-
-
+
+
+
+
diff --git a/src/legacy/core_plugins/console/public/src/directives/sense_history.js b/src/legacy/core_plugins/console/public/src/directives/sense_history.js
index dfcee2b87ba73..29ad60a84e740 100644
--- a/src/legacy/core_plugins/console/public/src/directives/sense_history.js
+++ b/src/legacy/core_plugins/console/public/src/directives/sense_history.js
@@ -36,6 +36,7 @@ require('ui/modules')
scope: {
isShown: '=',
historyDirty: '=',
+ close: '&',
},
controller: function ($scope, $element) {
$scope.$watch('historyDirty', () => {
@@ -73,6 +74,10 @@ require('ui/modules')
this.init();
};
+ this.close = () => {
+ $scope.close();
+ };
+
this.restore = (req = this.selectedReq) => {
history.restoreFromHistory(req);
};