Skip to content

Commit

Permalink
Merge pull request #913 from opencb/TASK-5764
Browse files Browse the repository at this point in the history
TASK-5764 - IVA User projects - Link to VB not working
  • Loading branch information
gpveronica authored May 8, 2024
2 parents ecf8be6 + 20b3003 commit ff37846
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/webcomponents/user/user-projects.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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) => `
<a href="#browser/${row.id}/${value}" title="Variant Browser" style="white-space:nowrap;">
<i class="fas fa-external-link-alt icon-padding"></i> VB
</a>
`,
field: "fqn",
type: "custom",
display: {
render: fqn => {
const match = fqn.match(/^[^@]+@([^:]+):(.*)$/);
if (match) {
const [, project, study] = match;
return html`
<a href="#variant-browser/${project}/${study}" title="Variant Browser"
style="white-space:nowrap;">
<i class="fas fa-external-link-alt icon-padding"></i> VB
</a>
`;
}
return nothing;
},
},
},
*/
],
},
},
Expand Down

0 comments on commit ff37846

Please sign in to comment.