Skip to content

Commit

Permalink
perf(webui): reduce duplicate api calls for components with datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Feb 18, 2022
1 parent 50af68c commit 1a82497
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions komga-webui/src/components/AuthenticationActivityTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export default Vue.extend({
return headers
},
},
async mounted() {
this.loadData()
},
methods: {
async loadData() {
this.loading = true
Expand Down
3 changes: 1 addition & 2 deletions komga-webui/src/components/PageHashMatchesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ export default Vue.extend({
},
deep: true,
},
hash(val) {
hash() {
this.options.page = 1
this.options.sortBy = []
this.options.sortDesc = []
this.elements = []
this.totalElements = 0
this.loadData(val)
},
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions komga-webui/src/views/SettingsDuplicates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ export default Vue.extend({
]
},
},
async mounted() {
this.loadBooks()
},
methods: {
async loadBooks() {
this.loading = true
Expand Down
3 changes: 0 additions & 3 deletions komga-webui/src/views/SettingsMediaAnalysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ export default Vue.extend({
}))
},
},
async mounted() {
this.loadBooks()
},
methods: {
async loadBooks() {
this.loading = true
Expand Down

0 comments on commit 1a82497

Please sign in to comment.