From b6baff8775a45fd057ed9f15ba9ac29633261fea Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 3 Mar 2017 11:47:55 +0100 Subject: Revert "refactor source viewer (#1705)" This reverts commit ce9f0892fc3d15638c4eaa4054ed06f3d7e5fc19. --- server/sonar-web/src/main/js/apps/code/components/App.js | 4 ++-- server/sonar-web/src/main/js/apps/code/components/ComponentPin.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/code') 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 && (
- +
)} 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 ( -- cgit v1.2.3