Преглед на файлове

SONAR-16456 Remove expand button on non file header

tags/9.5.0.56709
Mathieu Suen преди 2 години
родител
ревизия
10765dd52e
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx

+ 2
- 1
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx Целия файл

@@ -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}

Loading…
Отказ
Запис