Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK-5764 - IVA User projects - Link to VB not working #913

Merged
merged 3 commits into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading