airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] 03/03: AIRAVATA-2975 Remove unused function, css class
Date Wed, 08 May 2019 12:56:14 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch airavata-2975
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 78a2bea0f6e462c01d100d14038b55088a95c06f
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Wed May 8 08:55:54 2019 -0400

    AIRAVATA-2975 Remove unused function, css class
---
 .../js/components/experiment/ExperimentSummary.vue | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
index e7e9496..f2003d5 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
@@ -301,34 +301,10 @@ export default {
     this.initPollingExperiment();
   }
 };
-/**
-*  Generic function that sorts an array
-*  of objects by key
-*  Default sorting order is ascending
-*  @param {Array} array
-*  @param {string} key
-*  @param {string} order (either asc or desc)
-*/
-function sortByKey(array, key, order = "asc") {
-  return array.sort(function(obj1, obj2) {
-    // If key doesn't exist, returns 0
-    if(!obj1.hasOwnProperty(key) || !obj2.hasOwnProperty(key)) {
-      return 0;
-    }
-    let sortOrder = (order == 'desc') ? -1 : 1;
-    var val1 = (typeof obj1[key] === 'string') ? obj1[key].toLowerCase() : obj1[key];
-    var val2 = (typeof obj2[key] === 'string') ? obj2[key].toLowerCase() : obj2[key];
-    return ((val1 < val2) ? -1 * sortOrder : ((val1 > val2) ? 1 * sortOrder : 0));
-    });
-  }
 </script>
 
 <style scoped>
 .data-product + .data-product {
   margin-left: 0.5em;
 }
-.input-list {
-  padding-left: .5em;
-  margin-bottom: 0;
-}
 </style>


Mime
View raw message