diff --git a/src/webviews/apps/plus/graph/GraphWrapper.tsx b/src/webviews/apps/plus/graph/GraphWrapper.tsx index 75f3877..81dad54 100644 --- a/src/webviews/apps/plus/graph/GraphWrapper.tsx +++ b/src/webviews/apps/plus/graph/GraphWrapper.tsx @@ -142,7 +142,7 @@ const getClientPlatform = (): GraphPlatform => { const clientPlatform = getClientPlatform(); -const graphColumns: {[Key in GraphZoneType]: {name: string; hideable: boolean}} = { +const graphColumns: { [Key in GraphZoneType]: { name: string; hideable: boolean } } = { refZone: { name: 'Branch / Tag', hideable: false, @@ -517,6 +517,56 @@ export function GraphWrapper({ ) : (

No repository is selected

)} +
+
+
+ +
+ {Object.entries(graphColumns).map( + ([graphZoneType, column]) => + column.hideable && ( + handleSelectColumn(graphZoneType as GraphZoneType)} + > + + {column.name}{' '} + + ), + )} +
+
+
+