From 65f89720dffdcb9499746336b413384816ed4f9e Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Tue, 27 Aug 2019 15:16:02 +0200 Subject: [PATCH] add extensionPoint to sourceView rows to render downloadIcon from editor-plugin --- .../repos/sources/components/FileTreeLeaf.js | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/scm-ui/src/repos/sources/components/FileTreeLeaf.js b/scm-ui/src/repos/sources/components/FileTreeLeaf.js index 20905a8354..85ee87b329 100644 --- a/scm-ui/src/repos/sources/components/FileTreeLeaf.js +++ b/scm-ui/src/repos/sources/components/FileTreeLeaf.js @@ -7,6 +7,7 @@ import FileIcon from "./FileIcon"; import { Link } from "react-router-dom"; import type { File } from "@scm-manager/ui-types"; import classNames from "classnames"; +import { binder, ExtensionPoint } from "@scm-manager/ui-extensions"; const styles = { iconColumn: { @@ -75,14 +76,32 @@ class FileTreeLeaf extends React.Component { return ( {this.createFileIcon(file)} - {this.createFileName(file)} + + {this.createFileName(file)} + {fileSize} - + {file.description} + {binder.hasExtension("sourceView.right") && + !file.directory && ( + + + + )} ); }