Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CD-CODE Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CD-CODE team
CD-CODE Web
Commits
2e210941
Commit
2e210941
authored
3 years ago
by
HongKee Moon
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#28
: Fixed not showing protein tables when pubmed is null
As well as Evidence column is hidden
parent
0ca1f82e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/src/components/LlpsTable.vue
+48
-44
48 additions, 44 deletions
web/src/components/LlpsTable.vue
with
48 additions
and
44 deletions
web/src/components/LlpsTable.vue
+
48
−
44
View file @
2e210941
...
...
@@ -162,11 +162,15 @@
className
:
"
text-nowrap
"
,
fnCreatedCell
:
(
nTd
,
sData
,
oData
)
=>
{
// console.log(sData)
let
data
=
vm
.
pubmed
[
oData
.
uniprot_id
];
if
(
data
)
{
// $(nTd).html(data.filter(a => a.startsWith('http')).join('\n'));
// $(nTd).html(data.map(i => vm.createLink(i)).join('
<
br
/>
'
));
$(nTd).html(data.map(i => vm.createPubMedLink(i)).join(
'
'
));
if
(
vm
.
pubmed
)
{
let
data
=
vm
.
pubmed
[
oData
.
uniprot_id
];
if
(
data
)
{
// $(nTd).html(data.filter(a => a.startsWith('http')).join('\n'));
// $(nTd).html(data.map(i => vm.createLink(i)).join('
<
br
/>
'
));
$(nTd).html(data.map(i => vm.createPubMedLink(i)).join(
'
'
));
} else {
$(nTd).html(
''
)
}
} else {
$(nTd).html(
''
)
}
...
...
@@ -214,25 +218,25 @@
// <button class="copy-button" name="${oData.uniprot_id}" id="${oData.uniprot_id}" data-clipboard-text="${sData}"><i class="glyphicon glyphicon-copy"></i> </button>`);
// },
// }
{
title:
'
Evidence
Stars
'
,
className: "text-nowrap",
data:
'
uniprot_id
'
,
render: function ( data, type, row, meta ) {
// console.log(_.flatMap(row.condensates, c => c.data_sources))
if(row.condensates) {
return getRatingValue(vm.map[row.uniprot_id]);
}
return
''
;
},
fnCreatedCell: (nTd, sData, oData) => {
// console.log(sData)
let data = vm.map[oData.uniprot_id];
if(data) {
$(nTd).html(getRating(data).join(
'
\
n
'
));
}
}
}
//
{
//
title:
'
Evidence
Stars
'
,
//
className: "text-nowrap",
//
data:
'
uniprot_id
'
,
//
render: function ( data, type, row, meta ) {
//
// console.log(_.flatMap(row.condensates, c => c.data_sources))
//
if(row.condensates) {
//
return getRatingValue(vm.map[row.uniprot_id]);
//
}
//
return
''
;
//
},
//
fnCreatedCell: (nTd, sData, oData) => {
//
// console.log(sData)
//
let data = vm.map[oData.uniprot_id];
//
if(data) {
//
$(nTd).html(getRating(data).join(
'
\
n
'
));
//
}
//
}
//
}
] :
[
{
...
...
@@ -331,26 +335,26 @@
// <button class="copy-button" name="${oData.uniprot_id}" id="${oData.uniprot_id}" data-clipboard-text="${sData}"><i class="glyphicon glyphicon-copy"></i> </button>`);
// },
// }
{
title:
'
Evidence
Stars
'
,
className: "text-nowrap",
data:
'
uniprot_id
'
,
render: function ( data, type, row, meta ) {
// console.log(_.flatMap(row.condensates, c => c.data_sources))
let dat = vm.map[data];
if(dat) {
// console.log(getRatingValue(vm.map[row.uniprot_id]))
return getRatingValue(vm.map[row.uniprot_id]);
}
return
''
;
},
fnCreatedCell: (nTd, sData, oData) => {
let data = vm.map[oData.uniprot_id];
if(data) {
$(nTd).html(getRating(data).join(
'
\
n
'
));
}
}
}
//
{
//
title:
'
Evidence
Stars
'
,
//
className: "text-nowrap",
//
data:
'
uniprot_id
'
,
//
render: function ( data, type, row, meta ) {
//
// console.log(_.flatMap(row.condensates, c => c.data_sources))
//
let dat = vm.map[data];
//
if(dat) {
//
// console.log(getRatingValue(vm.map[row.uniprot_id]))
//
return getRatingValue(vm.map[row.uniprot_id]);
//
}
//
return
''
;
//
},
//
fnCreatedCell: (nTd, sData, oData) => {
//
let data = vm.map[oData.uniprot_id];
//
if(data) {
//
$(nTd).html(getRating(data).join(
'
\
n
'
));
//
}
//
}
//
}
];
const nTableOptions = {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment