diff --git a/src/webcomponents/user/user-projects.js b/src/webcomponents/user/user-projects.js index 8ad7d8a97..db8876384 100644 --- a/src/webcomponents/user/user-projects.js +++ b/src/webcomponents/user/user-projects.js @@ -1,4 +1,4 @@ -import {LitElement, html} from "lit"; +import {LitElement, html, nothing} from "lit"; import UtilsNew from "../../core/utils-new.js"; import OpencgaCatalogUtils from "../../core/clients/opencga/opencga-catalog-utils.js"; import "../commons/forms/data-form.js"; @@ -182,20 +182,26 @@ export default class UserProjects extends LitElement { title: "FQN", field: "fqn", }, - // Caution 20240229 Vero: commented out because: - // (a) not working - // (b) further discussion needed to migrate to new config data model - /* { title: "Links", - field: "id", - formatter: (value, row) => ` - - VB - - `, + field: "fqn", + type: "custom", + display: { + render: fqn => { + const match = fqn.match(/^[^@]+@([^:]+):(.*)$/); + if (match) { + const [, project, study] = match; + return html` + + VB + + `; + } + return nothing; + }, + }, }, - */ ], }, },