mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
show different icon for sub repository
This commit is contained in:
@@ -10,7 +10,9 @@ class FileIcon extends React.Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
const { file } = this.props;
|
const { file } = this.props;
|
||||||
let icon = "file";
|
let icon = "file";
|
||||||
if (file.directory) {
|
if (file.subRepository) {
|
||||||
|
icon = "folder-plus";
|
||||||
|
} else if (file.directory) {
|
||||||
icon = "folder";
|
icon = "folder";
|
||||||
}
|
}
|
||||||
return <i className={`fa fa-${icon}`} />;
|
return <i className={`fa fa-${icon}`} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user