mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ML] Fixing the hiding of the timepicker on the settings and data visualizer landing page (#30200) (#30305)
* [ML] Fixing the hiding of the timepicker on the settings page * disabling timefilter on file data visualizer pages * removing comment
This commit is contained in:
parent
970ebdfec9
commit
43a47001ff
3 changed files with 11 additions and 3 deletions
|
@ -22,6 +22,7 @@ import {
|
|||
|
||||
import { isFullLicense } from '../../license/check_license';
|
||||
import { FormattedMessage, injectI18n } from '@kbn/i18n/react';
|
||||
import { timefilter } from 'ui/timefilter';
|
||||
|
||||
function startTrialDescription() {
|
||||
return (
|
||||
|
@ -50,6 +51,9 @@ function startTrialDescription() {
|
|||
|
||||
export const DatavisualizerSelector = injectI18n(function (props) {
|
||||
|
||||
timefilter.disableTimeRangeSelector();
|
||||
timefilter.disableAutoRefreshSelector();
|
||||
|
||||
const startTrialVisible = (isFullLicense() === false);
|
||||
|
||||
return (
|
||||
|
|
|
@ -7,8 +7,12 @@
|
|||
import { FileDataVisualizerView } from './components/file_datavisualizer_view';
|
||||
|
||||
import React from 'react';
|
||||
import { timefilter } from 'ui/timefilter';
|
||||
|
||||
export function FileDataVisualizerPage({ indexPatterns, kibanaConfig }) {
|
||||
timefilter.disableTimeRangeSelector();
|
||||
timefilter.disableAutoRefreshSelector();
|
||||
|
||||
return (
|
||||
<div className="file-datavisualizer-container">
|
||||
<FileDataVisualizerView indexPatterns={indexPatterns} kibanaConfig={kibanaConfig} />
|
||||
|
|
|
@ -44,9 +44,6 @@ import { Settings } from './settings.js';
|
|||
|
||||
module.directive('mlSettings', function () {
|
||||
|
||||
timefilter.disableTimeRangeSelector(); // remove time picker from top of page
|
||||
timefilter.disableAutoRefreshSelector(); // remove time picker from top of page
|
||||
|
||||
const canGetFilters = checkPermission('canGetFilters');
|
||||
const canGetCalendars = checkPermission('canGetCalendars');
|
||||
|
||||
|
@ -55,6 +52,9 @@ module.directive('mlSettings', function () {
|
|||
replace: false,
|
||||
scope: {},
|
||||
link: function (scope, element) {
|
||||
timefilter.disableTimeRangeSelector();
|
||||
timefilter.disableAutoRefreshSelector();
|
||||
|
||||
ReactDOM.render(
|
||||
<I18nContext>
|
||||
{React.createElement(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue