Skip to content
Snippets Groups Projects
Commit 9c415a4b authored by Sandro Weber's avatar Sandro Weber
Browse files

removed comments, added docu

parent 0841e225
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,6 @@ import ExperimentsService from '../../services/proxy/experiments-service.js';
import './experiment-list-element.css';
//import config from '../../config.json';
//import endpoints from '../../services/proxy/data/endpoints.json';
export default class ExperimentListElement extends React.Component {
constructor(props) {
super(props);
......
......@@ -45,6 +45,12 @@ class ExperimentsService extends HttpService {
return this.experiments;
};
/**
* Retrieves the thumbnail image for a given experiment.
* @param {object} experiment - experiment specification and configuration object
*
* @returns {Blob} image object
*/
async getThumbnail(experiment) {
let url = config.api.proxy.url + endpoints.proxy.storage.url + '/' + experiment.name + '/' + experiment.configuration.thumbnail + '?byname=true';
let response = await this.httpRequestGET(url);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment