".zip"
],
"url": "https://doc.arvados.org",
- "filePathParam": "filePath"
+ "filePathParam": "filePath",
+ "iconUrl": "https://material.io/tools/icons/static/icons/baseline-next_week-24px.svg"
},
{
"name": "Collection browser",
// SPDX-License-Identifier: AGPL-3.0
import * as React from "react";
-import { ListItemText, ListItem, ListItemIcon } from "@material-ui/core";
+import { ListItemText, ListItem, ListItemIcon, Icon } from "@material-ui/core";
import { RootState } from '~/store/store';
import { getNodeValue } from '~/models/tree';
import { CollectionDirectory, CollectionFile, CollectionFileType } from '~/models/collection-file';
onClick={onClick}
target='_blank'>
<ListItemIcon>
- <OpenIcon />
+ {
+ viewer.iconUrl
+ ? <Icon>
+ <img src={viewer.iconUrl} />
+ </Icon>
+ : <OpenIcon />
+ }
</ListItemIcon>
<ListItemText>
{viewer.name}