From 3e4beb3cdac4aa1d2d3410a758763b5a1ca949d6 Mon Sep 17 00:00:00 2001 From: gpveronica Date: Tue, 30 Apr 2024 20:21:50 +0200 Subject: [PATCH 1/2] wc - Display VB link column in user projects Signed-off-by: gpveronica --- src/webcomponents/user/user-projects.js | 31 +++++++++++++++---------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/webcomponents/user/user-projects.js b/src/webcomponents/user/user-projects.js index 8ad7d8a97..82f30b60a 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,27 @@ 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(/^[^@]+@([^:]+):(.*)$/); + debugger + if (match) { + const [, project, study] = match; + return html` + + VB + + `; + } + return nothing; + }, + }, }, - */ ], }, }, From 00407f9abba6b0d83ac2e64515909153107f62fb Mon Sep 17 00:00:00 2001 From: gpveronica Date: Tue, 30 Apr 2024 20:23:38 +0200 Subject: [PATCH 2/2] wc - Removed debugger Signed-off-by: gpveronica --- src/webcomponents/user/user-projects.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webcomponents/user/user-projects.js b/src/webcomponents/user/user-projects.js index 82f30b60a..db8876384 100644 --- a/src/webcomponents/user/user-projects.js +++ b/src/webcomponents/user/user-projects.js @@ -189,7 +189,6 @@ export default class UserProjects extends LitElement { display: { render: fqn => { const match = fqn.match(/^[^@]+@([^:]+):(.*)$/); - debugger if (match) { const [, project, study] = match; return html`