forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up show spy panel in embed mode [webpack] fix loader query string usage (elastic#9497) * [webpack] pin to fork with fixed loader aliases * [optimizer] upgrade to postcss+autoprefixer * [timelion] convert uiExports.modules -> webpackShims * [uiExports] remove implementation-leaking and unused uiExport types * [optimizer] remove unused imports * [uiBundlerEnv] add a method for exporting global import aliases for special cases [dev tools] Hide app link when there are no tools (elastic#9489) * [dev tools] Hide app link when there are no tools * [dev tools] Add tests for setting app as hidden pie chart unhandled error fix (elastic#9422) Add NoResults and Panel components. (elastic#9516) * Add NoResults and Panel components. * Lighten noResults text. Update ToolBarFooter component to support content on the left side. (elastic#9514) Fix bug with Button component appearance inside of a ToolBar. (elastic#9526) Make basic Button hover state the same both in and out of ToolBar. (elastic#9528) [grunt/eslint] fix precommit linting (elastic#9510) * [grunt/eslint] fix precommit linting - remove use of `minimatch.makeRe()` because it does not support the entire glob syntax - log a warning whenever a js file is excluded by the `lintStagedFiles` task - eslint globs are relative to the project root, ensure that we check against relative version * [grunt/eslint] only log warning wtr grunt paths Add Tabs component. (elastic#9536) - Fix bugs with Button and CheckBox focused states. - Fix appearance of cell content in Table. Disable linting for Tabs component example JS. (elastic#9538) Set Button component to display: inline-block, to ensure it has the same height when applied to both button elements and anchor tags. (elastic#9541) fixing metric vis to correctly show scrollbars when overflown (elastic#9481) Adding Safari 7 support to autoprefixer (elastic#9534) PhantomJS is using a rather outdated version of WebKit, which requires various css-prefixes to render correctly. PhantomJS doesn't have a specific user-agent, and Safari 7 is the closet version of WebKit. use Stop Editing instead of Preview Warn the user if they Stop Editing with unsaved changes - Refresh the dashboard after stop editing so unsaved changes are lost and no temporary edits will be shown in non-edit mode. Don't watch the variable on scope, but the config attribute
- Loading branch information
1 parent
6b009a1
commit 506734c
Showing
9 changed files
with
171 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/core_plugins/kibana/public/dashboard/dashboard_state_manager.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
import stateMonitorFactory from 'ui/state_management/state_monitor_factory'; | ||
|
||
export class DashboardAppStateManager { | ||
constructor(stateDefaults, AppState) { | ||
let temporaryStateMonitor; | ||
let persistedStateMonitor; | ||
|
||
let temporaryAppState; | ||
let persistedAppState; | ||
|
||
this.appState = new AppState(stateDefaults); | ||
this.uiState = this.appState.makeStateful('uiState'); | ||
this.$appStatus = {}; | ||
|
||
// watch for state changes and update the appStatus.dirty value | ||
this.stateMonitor = stateMonitorFactory.create($state, stateDefaults); | ||
this.stateMonitor.onChange((status) => { | ||
$appStatus.dirty = status.dirty; | ||
}); | ||
|
||
this.viewMode = currentViewMode; | ||
} | ||
|
||
onViewModeChanged(newMode) { | ||
this.viewMode = newMode; | ||
|
||
} | ||
|
||
destroy() { | ||
this.stateMonitor.destroy(); | ||
} | ||
} | ||
|
||
|
||
function resetState(dashboardStateManager, newAppState) { | ||
dashboardStateManager.appState = newAppState; | ||
dashboardStateManager.uiState = newAppState.makeStateful('uiState'); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/core_plugins/kibana/public/dashboard/dashboard_view_mode.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* A dashboard mode. | ||
* @typedef {string} DashboardMode | ||
*/ | ||
|
||
/** | ||
* Dashboard view modes. | ||
* @type {{EDIT: DashboardMode, VIEW: DashboardMode}} | ||
*/ | ||
export const DashboardViewMode = { | ||
EDIT: 'edit', | ||
VIEW: 'view' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 42 additions & 12 deletions
54
src/core_plugins/kibana/public/dashboard/get_top_nav_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters