mlflow/server/js/src/utils/Utils.js
/**
   * Returns an svg with some styling applied.
   */
Returns an svg with some styling applied.
Returns an svg with some styling applied .
static renderSourceTypeIcon(sourceType) {
    const imageStyle = {
      height: '20px',
      position: 'relative',
      top: '-1px',
      marginRight: '2px',
    };
    if (sourceType === "NOTEBOOK") {
      return <img title="Notebook" style={imageStyle} src={notebookSvg} />;
    } else if (sourceType === "LOCAL") {
      return <img title="Local Source" style={imageStyle} src={laptopSvg} />;
    } else if (sourceType === "PROJECT") {
      return <img title="Project" style={imageStyle} src={projectSvg} />;
    }
    return <img style={imageStyle} src={emptySvg} />;
  }
static renderSourceTypeIcon ( sourceType ) { const imageStyle = { height : '20px' , position : 'relative' , top : '-1px' , marginRight : '2px' , } ; if ( sourceType === "NOTEBOOK" ) { return < img title = "Notebook" style = { imageStyle } src = { notebookSvg } / > ; } else if ( sourceType === "LOCAL" ) { return < img title = "Local Source" style = { imageStyle } src = { laptopSvg } / > ; } else if ( sourceType === "PROJECT" ) { return < img title = "Project" style = { imageStyle } src = { projectSvg } / > ; } return < img style = { imageStyle } src = { emptySvg } / > ; }
Returns an svg with some styling applied.
Returns an svg with some styling applied .