Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #349 from netdata/bug/after-and-before-not-respect…
Browse files Browse the repository at this point in the history
…ed-after-reload

set initial after and before from hashParams
  • Loading branch information
jjtsou authored Jan 27, 2022
2 parents a2c248b + 2f903af commit 895df0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/dashboard",
"version": "2.20.15",
"version": "2.20.16",
"homepage": ".",
"main": "./lib/src/index-npm.js",
"files": [
Expand Down
5 changes: 3 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { serverDefault } from './utils/server-detection';
import { name2id } from './utils/name-2-id';
import { isProperTimezone } from './utils/date-time';
import { NETDATA_REGISTRY_SERVER } from './utils';
import { getHashParam } from 'utils/hash-utils';
import { isDemo } from "./utils/is-demo"
import { LEGEND_BOTTOM_SINGLE_LINE_HEIGHT } from './domains/chart/utils/legend-utils';
import { defaultAttributes } from './domains/chart/utils/transformDataAttributes';
Expand Down Expand Up @@ -120,8 +121,8 @@ window.urlOptions = {
update_always: false,
pan_and_zoom: false,
server: null,
after: 0,
before: 0,
after: getHashParam('after') ?? 0,
before: getHashParam('before') ?? 0,
highlight: false,
highlight_after: 0,
highlight_before: 0,
Expand Down

0 comments on commit 895df0c

Please sign in to comment.