Disable timepicker in Visualization listing.

This commit is contained in:
CJ Cenizal 2017-01-04 16:18:35 -08:00
parent a1f737fcf3
commit ca4adc36bd
6 changed files with 21 additions and 21 deletions

View file

@ -1,5 +1,5 @@
<!-- Local nav. -->
<kbn-top-nav name="visualize" no-menu-extensions>
<kbn-top-nav name="visualize">
<!-- Transcluded elements. -->
<div data-transclude-slots>
<!-- Title. -->

View file

@ -4,8 +4,11 @@ export function VisualizeListingController(
$scope,
kbnUrl,
Notifier,
Private
Private,
timefilter
) {
timefilter.enabled = false;
// TODO: Extract this into an external service.
const services = Private(SavedObjectRegistryProvider).byLoaderPropertiesName;
const visualizationService = services.visualizations;
@ -56,11 +59,11 @@ export function VisualizeListingController(
const selectedIds = selectedItems.map(item => item.id);
visualizationService.delete(selectedIds)
.then(fetchObjects)
.then(() => {
selectedItems = [];
})
.catch(error => notify.error(error));
.then(fetchObjects)
.then(() => {
selectedItems = [];
})
.catch(error => notify.error(error));
};
this.open = function open(item) {
@ -69,7 +72,7 @@ export function VisualizeListingController(
this.edit = function edit(item) {
const params = {
// TODO: Get this value from somewhere instead of hardcodign it.
// TODO: Get this value from somewhere instead of hardcoding it.
service: 'savedVisualizations',
id: item.id
};

View file

@ -1,5 +1,5 @@
<!-- Local nav. -->
<kbn-top-nav name="visualize" no-menu-extensions>
<kbn-top-nav name="visualize">
<!-- Transcluded elements. -->
<div data-transclude-slots>
<!-- Breadcrumbs. -->
@ -26,11 +26,11 @@
ng-href="{{ visTypeUrl(type) }}"
>
<div class="wizard-type-heading">
<i
<span
aria-hidden="true"
class="wizard-type-heading-icon fa fa-fw"
ng-class="type.icon"
></i>
></span>
<h4 data-test-subj="visualizeWizardChartTypeTitle" class="wizard-type-heading-text">{{type.title}}</h4>
</div>
<p class="wizard-type-description">{{type.description}}</p>

View file

@ -1,5 +1,5 @@
<!-- Local nav. -->
<kbn-top-nav name="visualize" no-menu-extensions>
<kbn-top-nav name="visualize">
<!-- Transcluded elements. -->
<div data-transclude-slots>
<!-- Breadcrumbs. -->
@ -24,11 +24,11 @@
<h3 class="wizard-sub-title">Or, From a Saved Search</h3>
<!-- Saved searches -->
<saved-object-finder
title="Saved Searches"
type="searches"
class="wizard-row"
make-url="step2WithSearchUrl"
></saved-object-finder>
title="Saved Searches"
type="searches"
class="wizard-row"
make-url="step2WithSearchUrl"
></saved-object-finder>
</div>
</div>
</div>

View file

@ -99,9 +99,8 @@ module.directive('kbnTopNav', function (Private) {
});
});
const extensions = getNavbarExtensions($attrs.name);
let controls = _.get($scope, $attrs.config, []);
const noMenuExtensions = $attrs.hasOwnProperty('noMenuExtensions');
const extensions = noMenuExtensions ? [] : getNavbarExtensions($attrs.name);
if (controls instanceof KbnTopNavController) {
controls.addItems(extensions);

View file

@ -373,8 +373,6 @@ export default class VisualizePage {
});
}
// this is for starting on the
// bottom half of the "Create a new visualization Step 1" page
openSavedVisualization(vizName) {
return this.clickVisualizationByLinkText(vizName);
}