-
-
+
-
-
+ title="getVisualizationTitle()"
+ use-links="true"
+ omit-current-page="true"
+ omit-pages="['edit']"
+ >
-
+
diff --git a/src/core_plugins/kibana/public/visualize/editor/editor.js b/src/core_plugins/kibana/public/visualize/editor/editor.js
index 159ff5e01b98e..7d3201a8936b8 100644
--- a/src/core_plugins/kibana/public/visualize/editor/editor.js
+++ b/src/core_plugins/kibana/public/visualize/editor/editor.js
@@ -224,6 +224,10 @@ function VisEditor($scope, $route, timefilter, AppState, $window, kbnUrl, courie
$state.replace();
+ $scope.getVisualizationTitle = function getVisualizationTitle() {
+ return savedVis.lastSavedTitle || 'New Visualization';
+ };
+
$scope.$watch('searchSource.get("index").timeFieldName', function (timeField) {
timefilter.enabled = !!timeField;
});
diff --git a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html
index 7caa22b6139da..988a1f293f347 100644
--- a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html
+++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html
@@ -50,7 +50,7 @@
diff --git a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js
index 7ee61742b3084..0d136b962dd25 100644
--- a/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js
+++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.js
@@ -66,18 +66,8 @@ export function VisualizeListingController(
.catch(error => notify.error(error));
};
- this.open = function open(item) {
- kbnUrl.change(item.url.substr(1));
- };
-
- this.edit = function edit(item) {
- const params = {
- // TODO: Get this value from somewhere instead of hardcoding it.
- service: 'savedVisualizations',
- id: item.id
- };
-
- kbnUrl.change('/management/kibana/objects/{{ service }}/{{ id }}', params);
+ this.getUrlForItem = function getUrlForItem(item) {
+ return `#/visualize/edit/${item.id}`;
};
$scope.$watch(() => this.filter, () => {
diff --git a/src/core_plugins/kibana/public/visualize/wizard/step_1.html b/src/core_plugins/kibana/public/visualize/wizard/step_1.html
index 076254ad41f91..7a6fc7907e57d 100644
--- a/src/core_plugins/kibana/public/visualize/wizard/step_1.html
+++ b/src/core_plugins/kibana/public/visualize/wizard/step_1.html
@@ -5,6 +5,7 @@