This is an automated email from the ASF dual-hosted git repository.

mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drat.git


The following commit(s) were added to refs/heads/master by this push:
     new 5faac5e  Fix for incorrect project popping after pagination or search 
on projects list table -was passing the index as the parameter and now passing 
the element it self
     new 782e394  Merge pull request #191 from ahmedifhaam/ui-fixes
5faac5e is described below

commit 5faac5e1905d35d7d9d513545c7661e48732547b
Author: ahmed ifhaam <[email protected]>
AuthorDate: Sat Mar 30 09:04:37 2019 +0530

    Fix for incorrect project popping after pagination or search on projects
    list table
    -was passing the index as the parameter and now passing the element it
    self
---
 .../webapp/resources/src/components/projectstable.vue    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git 
a/webapps/proteus-new/src/main/webapp/resources/src/components/projectstable.vue
 
b/webapps/proteus-new/src/main/webapp/resources/src/components/projectstable.vue
index 037c3b5..4face93 100644
--- 
a/webapps/proteus-new/src/main/webapp/resources/src/components/projectstable.vue
+++ 
b/webapps/proteus-new/src/main/webapp/resources/src/components/projectstable.vue
@@ -44,7 +44,7 @@ the License.
         <td class="text-xs-left">{{ props.item.name }}</td>
         <td class="text-xs-left">{{ props.item.description }}</td>
         <td >
-          <v-btn @click="moreClicked(props.index)">
+          <v-btn @click="moreClicked(props.item)">
           <v-icon medium 
           
           >description</v-icon>
@@ -307,16 +307,16 @@ import store from './../store/store';
         }
         return false;
       },
-      moreClicked :function(index){
+      moreClicked :function(item){
         this.$log.info("as");
         this.dialog =true;     
-        this.selectedItem = this.docs[index];
+        //this.selectedItem = this.docs[index];
+        this.selectedItem = item;
         this.loadLicenseData();
         this.loadFileDetails();
       },
       loadData(){
-        
-        axios.get(this.origin+"/solr/statistics/select?q=type:project&wt=json")
+          
axios.get(this.origin+"/solr/statistics/select?q=type:project&wt=json")
             .then(response=>{
               this.$log.info(response.data);
               this.docs=response.data.response.docs;
@@ -325,7 +325,7 @@ import store from './../store/store';
               if(response.data.response.numFound != null && 
response.data.response.numFound>10){
                 
axios.get(this.origin+"/solr/statistics/select?q=type:project&rows="+this.count.numFound+"&wt=json")
                   .then(response=>{
-                    this.docs=response.data.response.docs;
+                    this.docs= response.data.response.docs;
                     this.count.numFound = response.data.response.numFound;
                     this.count.start = response.data.response.start;
                   })
@@ -333,10 +333,10 @@ import store from './../store/store';
 
                   })
               }
-              
+
             })
             .catch(error=>{
-              
+
               throw error;
             })
       },

Reply via email to