mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
show full borders in sourceView when extensionPoint is available
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
} from "../modules/sources";
|
||||
import { withRouter } from "react-router-dom";
|
||||
import { compose } from "redux";
|
||||
import { binder } from "@scm-manager/ui-extensions";
|
||||
|
||||
const styles = {
|
||||
iconColumn: {
|
||||
@@ -124,6 +125,9 @@ class FileTree extends React.Component<Props> {
|
||||
<th className="is-hidden-mobile">
|
||||
{t("sources.file-tree.description")}
|
||||
</th>
|
||||
{binder.hasExtension("sourceView.right") && (
|
||||
<th className="is-hidden-mobile" />
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -92,14 +92,15 @@ class FileTreeLeaf extends React.Component<Props> {
|
||||
>
|
||||
{file.description}
|
||||
</td>
|
||||
{binder.hasExtension("sourceView.right") &&
|
||||
!file.directory && (
|
||||
{binder.hasExtension("sourceView.right") && (
|
||||
<td>
|
||||
{!file.directory && (
|
||||
<ExtensionPoint
|
||||
name="sourceView.right"
|
||||
props={{ file }}
|
||||
renderAll={true}
|
||||
/>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user