diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2017-03-03 11:47:55 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2017-03-03 11:47:55 +0100 |
commit | b6baff8775a45fd057ed9f15ba9ac29633261fea (patch) | |
tree | 1f3f8e2ae50ab60ff56e8afb207c836fad62566a /server/sonar-web/src/main/js/apps/code | |
parent | 313ffad34e614acb9379fe1e0a0879a49b05be52 (diff) | |
download | sonarqube-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.js | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/components/ComponentPin.js | 2 |
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 ( |