mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Dashboard] Added refresh check for backwards compatibility when loading dashboard, nested mapping for a saved dashboard
This commit is contained in:
parent
4c584a6816
commit
8357f25853
2 changed files with 12 additions and 2 deletions
|
@ -68,7 +68,9 @@ app.directive('dashboardApp', function (Notifier, courier, AppState, timefilter,
|
|||
if (dash.timeRestore && dash.timeTo && dash.timeFrom && !getAppState.previouslyStored()) {
|
||||
timefilter.time.to = dash.timeTo;
|
||||
timefilter.time.from = dash.timeFrom;
|
||||
timefilter.refreshInterval = dash.refreshInterval;
|
||||
if (dash.refreshInterval) {
|
||||
timefilter.refreshInterval = dash.refreshInterval;
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$on('$destroy', dash.destroy);
|
||||
|
|
|
@ -57,7 +57,15 @@ module.factory('SavedDashboard', function (courier, config) {
|
|||
timeRestore: 'boolean',
|
||||
timeTo: 'string',
|
||||
timeFrom: 'string',
|
||||
refreshInterval: 'object'
|
||||
refreshInterval: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
display: {type: 'string'},
|
||||
pause: { type: 'boolean'},
|
||||
section: { type: 'integer'},
|
||||
value: { type: 'integer'}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
SavedDashboard.searchsource = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue