Quellcode durchsuchen

Ensures dblclick works on the Graph column

main
Eric Amodio vor 1 Jahr
Ursprung
Commit
5564e7b3c6
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 2
- 2
src/webviews/apps/plus/graph/GraphWrapper.tsx Datei anzeigen

@ -11,7 +11,7 @@ import type {
GraphZoneType, GraphZoneType,
OnFormatCommitDateTime, OnFormatCommitDateTime,
} from '@gitkraken/gitkraken-components'; } from '@gitkraken/gitkraken-components';
import GraphContainer, { CommitDateTimeSources, commitZone, refZone } from '@gitkraken/gitkraken-components';
import GraphContainer, { CommitDateTimeSources, refZone } from '@gitkraken/gitkraken-components';
import { VSCodeCheckbox, VSCodeRadio, VSCodeRadioGroup } from '@vscode/webview-ui-toolkit/react'; import { VSCodeCheckbox, VSCodeRadio, VSCodeRadioGroup } from '@vscode/webview-ui-toolkit/react';
import type { FormEvent, ReactElement } from 'react'; import type { FormEvent, ReactElement } from 'react';
import React, { createElement, useEffect, useMemo, useRef, useState } from 'react'; import React, { createElement, useEffect, useMemo, useRef, useState } from 'react';
@ -891,7 +891,7 @@ export function GraphWrapper({
graphZoneType: GraphZoneType, graphZoneType: GraphZoneType,
row: GraphRow, row: GraphRow,
) => { ) => {
if (graphZoneType === refZone || graphZoneType === commitZone) return;
if (graphZoneType === refZone) return;
onDoubleClickRow?.(row, true); onDoubleClickRow?.(row, true);
}; };

Laden…
Abbrechen
Speichern