mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
show full borders in sourceView when extensionPoint is available
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user