aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-03 17:15:37 +0100
committerGitHub <noreply@github.com>2017-03-03 17:15:37 +0100
commitba93a1a0ed121bd331d87636b733e3e31f0b2d89 (patch)
treed8577faa316ff0f357c5e8d3641152e2d48be698 /server/sonar-web/src/main/js/apps/code
parent85f7fcad4280c797f580dc2ceaf5d029092cd9c1 (diff)
downloadsonarqube-ba93a1a0ed121bd331d87636b733e3e31f0b2d89.tar.gz
sonarqube-ba93a1a0ed121bd331d87636b733e3e31f0b2d89.zip
refactor source viewer (#1744)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code')
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/App.js4
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/ComponentPin.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/App.js b/server/sonar-web/src/main/js/apps/code/components/App.js
index d4a107033d1..4208e8d409b 100644
--- a/server/sonar-web/src/main/js/apps/code/components/App.js
+++ b/server/sonar-web/src/main/js/apps/code/components/App.js
@@ -22,7 +22,7 @@ import React from 'react';
import { connect } from 'react-redux';
import Components from './Components';
import Breadcrumbs from './Breadcrumbs';
-import SourceViewer from './../../../components/source-viewer/SourceViewer';
+import SourceViewer from './../../../components/SourceViewer/StandaloneSourceViewer';
import Search from './Search';
import ListFooter from '../../../components/controls/ListFooter';
import { retrieveComponentChildren, retrieveComponent, loadMoreChildren, parseError } from '../utils';
@@ -203,7 +203,7 @@ class App extends React.Component {
{shouldShowSourceViewer && (
<div className="spacer-top">
- <SourceViewer component={sourceViewer}/>
+ <SourceViewer component={sourceViewer.key}/>
</div>
)}
</div>
diff --git a/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js b/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
index 33adce19b8a..20670ac9bcb 100644
--- a/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
+++ b/server/sonar-web/src/main/js/apps/code/components/ComponentPin.js
@@ -25,7 +25,7 @@ import { translate } from '../../../helpers/l10n';
const ComponentPin = ({ component }) => {
const handleClick = e => {
e.preventDefault();
- Workspace.openComponent({ uuid: component.id });
+ Workspace.openComponent({ key: component.key });
};
return (