Przeglądaj źródła

SONAR-16456 Remove expand button on non file header

tags/9.5.0.56709
Mathieu Suen 2 lat temu
rodzic
commit
10765dd52e

+ 2
- 1
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx Wyświetl plik

@@ -26,6 +26,7 @@ import { locationsByLine } from '../../../components/SourceViewer/helpers/indexi
import SourceViewerHeaderSlim from '../../../components/SourceViewer/SourceViewerHeaderSlim';
import { getBranchLikeQuery } from '../../../helpers/branch-like';
import { BranchLike } from '../../../types/branch-like';
import { isFile } from '../../../types/component';
import {
Dict,
Duplication,
@@ -423,7 +424,7 @@ export default class ComponentSourceSnippetGroupViewer extends React.PureCompone
<div className="component-source-container" ref={this.rootNodeRef}>
<SourceViewerHeaderSlim
branchLike={branchLike}
expandable={!fullyShown}
expandable={!fullyShown && isFile(snippetGroup.component.q)}
loading={loading}
onExpand={this.expandComponent}
sourceViewerFile={snippetGroup.component}

Ładowanie…
Anuluj
Zapisz