show full borders in sourceView when extensionPoint is available

This commit is contained in:
Eduard Heimbuch
2019-08-28 09:55:48 +02:00
parent e4fde9b299
commit bd22d60965
2 changed files with 10 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ import {
} from "../modules/sources"; } from "../modules/sources";
import { withRouter } from "react-router-dom"; import { withRouter } from "react-router-dom";
import { compose } from "redux"; import { compose } from "redux";
import { binder } from "@scm-manager/ui-extensions";
const styles = { const styles = {
iconColumn: { iconColumn: {
@@ -124,6 +125,9 @@ class FileTree extends React.Component<Props> {
<th className="is-hidden-mobile"> <th className="is-hidden-mobile">
{t("sources.file-tree.description")} {t("sources.file-tree.description")}
</th> </th>
{binder.hasExtension("sourceView.right") && (
<th className="is-hidden-mobile" />
)}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@@ -92,14 +92,15 @@ class FileTreeLeaf extends React.Component<Props> {
> >
{file.description} {file.description}
</td> </td>
{binder.hasExtension("sourceView.right") && {binder.hasExtension("sourceView.right") && (
!file.directory && (
<td> <td>
{!file.directory && (
<ExtensionPoint <ExtensionPoint
name="sourceView.right" name="sourceView.right"
props={{ file }} props={{ file }}
renderAll={true} renderAll={true}
/> />
)}
</td> </td>
)} )}
</tr> </tr>