fix(ui): load more than 10 triggers in flow trigger page

closes #3455
This commit is contained in:
YannC
2024-05-14 16:54:36 +02:00
parent 834190c1db
commit 3d129d281e
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@
},
loadData() {
this.$store
.dispatch("trigger/find", {namespace: this.flow.namespace, flowId: this.flow.id})
.dispatch("trigger/find", {namespace: this.flow.namespace, flowId: this.flow.id, size: this.triggersWithType.length})
.then(triggers => this.triggers = triggers.results);
},
setBackfillModal(trigger, bool) {

View File

@@ -17,7 +17,7 @@ export default {
return (await this.$http.post(`${apiUrl(this)}/triggers/${options.namespace}/${options.flowId}/${options.triggerId}/unlock`)).data;
},
find({_commit}, options) {
return this.$http.get(`${apiUrl(this)}/triggers/${options.namespace}/${options.flowId}`).then(response => {
return this.$http.get(`${apiUrl(this)}/triggers/${options.namespace}/${options.flowId}`, {params: options}).then(response => {
return response.data;
})
},