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.
Revert "Prevent flicker on Getting Started page (elastic#11826)"
This reverts commit c4b3ade.
- Loading branch information
1 parent
4aee053
commit 6debe7f
Showing
5 changed files
with
79 additions
and
280 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
179 changes: 0 additions & 179 deletions
179
src/core_plugins/getting_started/public/lib/__tests__/add_setup_work.js
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import uiChrome from 'ui/chrome'; | ||
import { GETTING_STARTED_OPT_OUT_FLAG } from './constants'; | ||
|
||
export function hasOptedOutOfGettingStarted() { | ||
return Boolean(window.localStorage.getItem(GETTING_STARTED_OPT_OUT_FLAG)); | ||
return window.localStorage.getItem(GETTING_STARTED_OPT_OUT_FLAG) || false; | ||
} | ||
|
||
export function optOutOfGettingStarted() { | ||
window.localStorage.setItem(GETTING_STARTED_OPT_OUT_FLAG, true); | ||
} | ||
|
||
/** | ||
* This function is intended for unit testing | ||
*/ | ||
export function undoOptOutOfGettingStarted() { | ||
window.localStorage.removeItem(GETTING_STARTED_OPT_OUT_FLAG); | ||
uiChrome.setVisible(true); | ||
} |
Oops, something went wrong.