Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
hongee committed May 19, 2019
1 parent 3282e28 commit dcec07d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions kerckhoff/assets/js/components/management/Packages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,10 @@ export default {
});
},
set: function(idx) {
if (idx) {
if (idx >= 0 && this.packageSets[idx]) {
this.packageSetDetails = this.packageSets[idx];
this.packageSet = this.packageSets[idx].slug;
console.log(this.$refs.packagesTable[idx].refresh);
this.refreshTable();
this.getPackageData();
}
}
}
Expand Down Expand Up @@ -197,10 +196,7 @@ export default {
},
methods: {
refreshTable: function() {
let idx = this.packageSets.findIndex(ps => {
return ps.slug == this.packageSet;
});
this.$refs.packagesTable[idx].refresh();
this.getPackageData();
},
getPackageData: function(ctx) {
let promise = axios.get(
Expand Down

0 comments on commit dcec07d

Please sign in to comment.