mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This reverts commit a9cc3225ba.
Co-authored-by: Elfo404 <me@giordanoricci.com>
This commit is contained in:
@@ -196,11 +196,15 @@ export const urlUtil = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Create an string that is used in URL to represent the Explore state. This is stringified json
|
||||
* that is used as a state of a single Explore pane - it does not represent full Explore URL.
|
||||
* Create an string that is used in URL to represent the Explore state. This is basically just a stringified json
|
||||
* that is that used as a state of a single Explore pane so it does not represent full Explore URL.
|
||||
*
|
||||
* @param urlState
|
||||
* @param compact this parameter is deprecated and will be removed in a future release.
|
||||
*/
|
||||
export function serializeStateToUrlParam(urlState: ExploreUrlState): string {
|
||||
export function serializeStateToUrlParam(urlState: ExploreUrlState, compact?: boolean): string {
|
||||
if (compact !== undefined) {
|
||||
console.warn('`compact` parameter is deprecated and will be removed in a future release');
|
||||
}
|
||||
return JSON.stringify(urlState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user