From b98aa2ee5b6248f9a23de7919e4ad249f35d47f3 Mon Sep 17 00:00:00 2001
From: HongKee Moon <hkmoon@me.com>
Date: Thu, 3 Jun 2021 14:10:04 +0200
Subject: [PATCH] Add is_experimental flag

---
 .../components/DDCODE/fetchAllCondensates.vue |  2 +-
 web/src/components/DataTableCondensate.vue    | 33 +++++++++++--------
 web/src/components/Links.vue                  | 11 +++++--
 web/src/router/index.js                       |  5 +++
 4 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/web/src/components/DDCODE/fetchAllCondensates.vue b/web/src/components/DDCODE/fetchAllCondensates.vue
index f6fd518..e928297 100644
--- a/web/src/components/DDCODE/fetchAllCondensates.vue
+++ b/web/src/components/DDCODE/fetchAllCondensates.vue
@@ -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())
diff --git a/web/src/components/DataTableCondensate.vue b/web/src/components/DataTableCondensate.vue
index 7d17ccf..3d55e1c 100644
--- a/web/src/components/DataTableCondensate.vue
+++ b/web/src/components/DataTableCondensate.vue
@@ -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',
diff --git a/web/src/components/Links.vue b/web/src/components/Links.vue
index b7ce622..64be6cd 100644
--- a/web/src/components/Links.vue
+++ b/web/src/components/Links.vue
@@ -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
diff --git a/web/src/router/index.js b/web/src/router/index.js
index 406a2ae..1563ee0 100644
--- a/web/src/router/index.js
+++ b/web/src/router/index.js
@@ -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',
-- 
GitLab