Commit aad69af5 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/330127/getParamEnableVirtualScrolling' into 'master'

Allow diff virtual scrolling to be enabled in a browser session

See merge request gitlab-org/gitlab!62083
parents deb59cbe 0ee36d68
import { getParameterValues } from '~/lib/utils/url_utility';
import { __, n__ } from '~/locale';
import {
PARALLEL_DIFF_VIEW_TYPE,
......@@ -172,4 +173,6 @@ export function suggestionCommitMessage(state, _, rootState) {
}
export const isVirtualScrollingEnabled = (state) =>
!state.viewDiffsFileByFile && window.gon?.features?.diffsVirtualScrolling;
!state.viewDiffsFileByFile &&
(window.gon?.features?.diffsVirtualScrolling ||
getParameterValues('virtual_scrolling')[0] === 'true');
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment