+const _resourceWithNameWrap = withStyles(
+ {},
+ { withTheme: true }
+)((props: { uuid: string; userFullname: string; dispatch: Dispatch; theme: ArvadosTheme }) => {
+ const { uuid, userFullname, dispatch, theme } = props;
+ if (userFullname === "") {
+ dispatch<any>(loadResource(uuid, false));
+ return (
+ <Typography
+ style={{ color: theme.palette.primary.main }}
+ inline
+ >
+ {uuid}
+ </Typography>
+ );
+ }
+
+ return (
+ <Typography
+ style={{ color: theme.palette.primary.main }}
+ inline
+ >
+ {userFullname} ({uuid})
+ </Typography>
+ );
+});
+