aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-03-03 11:47:55 +0100
committerStas Vilchik <vilchiks@gmail.com>2017-03-03 11:47:55 +0100
commitb6baff8775a45fd057ed9f15ba9ac29633261fea (patch)
tree1f3f8e2ae50ab60ff56e8afb207c836fad62566a /server/sonar-web/src/main/js/apps/code
parent313ffad34e614acb9379fe1e0a0879a49b05be52 (diff)
downloadsonarqube-b6baff8775a45fd057ed9f15ba9ac29633261fea.tar.gz
sonarqube-b6baff8775a45fd057ed9f15ba9ac29633261fea.zip
Revert "refactor source viewer (#1705)"
This reverts commit ce9f0892fc3d15638c4eaa4054ed06f3d7e5fc19.
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 4208e8d409b..d4a107033d1 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/SourceViewer/StandaloneSourceViewer';
+import SourceViewer from './../../../components/source-viewer/SourceViewer';
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.key}/>
+ <SourceViewer component={sourceViewer}/>
</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 20670ac9bcb..33adce19b8a 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({ key: component.key });
+ Workspace.openComponent({ uuid: component.id });
};
return (