[v10.1.x] Rendering: Fix dashboard screenshot (#73361)
Rendering: Fix dashboard screenshot (#73190)
Rendering: fix dashboard screenshot
(cherry picked from commit 24978eff61)
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
This commit is contained in:
co-authored by
Agnès Toulet
parent
f94ef93585
commit
c868461105
@@ -6,6 +6,7 @@ import { Subscription } from 'rxjs';
|
||||
|
||||
import { config } from '@grafana/runtime';
|
||||
import { GRID_CELL_HEIGHT, GRID_CELL_VMARGIN, GRID_COLUMN_COUNT } from 'app/core/constants';
|
||||
import { contextSrv } from 'app/core/services/context_srv';
|
||||
import { DashboardPanelsChangedEvent } from 'app/types/events';
|
||||
|
||||
import { AddLibraryPanelWidget } from '../components/AddLibraryPanelWidget';
|
||||
@@ -207,7 +208,7 @@ export class DashboardGrid extends PureComponent<Props> {
|
||||
* This can be quite distracting and make the dashboard appear to less snappy.
|
||||
*/
|
||||
onGetWrapperDivRef = (ref: HTMLDivElement | null) => {
|
||||
if (ref) {
|
||||
if (ref && contextSrv.user.authenticatedBy !== 'render') {
|
||||
setTimeout(() => {
|
||||
ref.classList.add('react-grid-layout--enable-move-animations');
|
||||
}, 50);
|
||||
|
||||
Reference in New Issue
Block a user