From: Stas Vilchik Date: Fri, 25 Apr 2014 07:24:04 +0000 (+0600) Subject: Component Viewer: fix little issues X-Git-Tag: 4.4-RC1~1397 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c172a24eddd261c92d79ec3a1da967c6d9f311b6;p=sonarqube.git Component Viewer: fix little issues --- diff --git a/sonar-server/src/main/coffee/component-viewer/main.coffee b/sonar-server/src/main/coffee/component-viewer/main.coffee index c231570efd1..4d55a066ebb 100644 --- a/sonar-server/src/main/coffee/component-viewer/main.coffee +++ b/sonar-server/src/main/coffee/component-viewer/main.coffee @@ -128,7 +128,7 @@ define [ @render() - showIssues: (issues, scrollToFirst) -> + showIssues: (issues) -> @settings.set 'issues', true if _.isArray(issues) && issues.length > 0 @source.set 'issues', issues @@ -144,12 +144,5 @@ define [ if optionsForCurrent? last = @workspace.at(@workspace.length - 1) last.set 'options', optionsForCurrent if last - -# workspaceItem = @workspace.findWhere key: key -# if workspaceItem? -# @workspace.remove workspaceItem -# @workspace.add workspaceItem -# else @workspace.add key: key, transition: transition, options: options - @_open key \ No newline at end of file