Skip to content
Snippets Groups Projects
Commit b98aa2ee authored by HongKee Moon's avatar HongKee Moon
Browse files

Add is_experimental flag

parent fe77ea01
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ export default {
host = require('../js/const').devHost;
}
let url = `${host}/condensates?species_tax_id=all&size=10000`;
let url = `${host}/condensates?size=100000`;
fetch(url)
.then(response => response.json())
......
......@@ -80,25 +80,32 @@
return row.proteins.length;
}
},
{
title: 'Biomolecular/Synthetic',
data: 'is_experimental',
render: function ( data, type, row, meta ) {
return data ? 'Syntehtic' : 'Biomolecular';
}
},
// {
// title: 'Localization',
// render: function ( data, type, row, meta ) {
// return '(placeholder)';
// }
// },
{
title: 'Evidence Stars',
data: 'data_sources',
render: function ( data, type, row, meta ) {
return getRatingValue(data);
},
fnCreatedCell: (nTd, sData, oData) => {
// console.log(sData)
if(sData) {
$(nTd).html(getRating(sData).join('\n'));
}
}
},
// {
// title: 'Evidence Stars',
// data: 'data_sources',
// render: function ( data, type, row, meta ) {
// return getRatingValue(data);
// },
// fnCreatedCell: (nTd, sData, oData) => {
// // console.log(sData)
// if(sData) {
// $(nTd).html(getRating(sData).join('\n'));
// }
// }
// },
{
title: 'Species',
data: 'species_name',
......
......@@ -10,11 +10,16 @@
About
</router-link>
</li>
<!--<li role="presentation" v-bind:class="{ active: $route.name === 'browse' }">-->
<!--<router-link to="/browse">-->
<!--Browse-->
<!--<li role="presentation" v-bind:class="{ active: $route.name === 'condensates' }">-->
<!--<router-link to="/condensates">-->
<!--Condensates-->
<!--</router-link>-->
<!--</li>-->
<li role="presentation" v-bind:class="{ active: $route.name === 'browse' }">
<router-link to="/browse">
Browse
</router-link>
</li>
<li role="presentation" v-bind:class="{ active: $route.name === 'statistics' }">
<router-link to="/statistics">
Statistics
......
......@@ -31,6 +31,11 @@ export default new Router({
name: 'browse',
component: () => import('@/components/BrowsePage'),
},
// {
// path: '/condensates',
// name: 'condensates',
// component: () => import('@/components/BrowsePage'),
// },
{
path: '/statistics',
name: 'statistics',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment