From 3d129d281e5c283742542d8c32f45c856bec6e9b Mon Sep 17 00:00:00 2001 From: YannC Date: Tue, 14 May 2024 16:54:36 +0200 Subject: [PATCH] fix(ui): load more than 10 triggers in flow trigger page closes #3455 --- ui/src/components/flows/FlowTriggers.vue | 2 +- ui/src/stores/trigger.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/flows/FlowTriggers.vue b/ui/src/components/flows/FlowTriggers.vue index bad2e5f78e..3b28fd57ea 100644 --- a/ui/src/components/flows/FlowTriggers.vue +++ b/ui/src/components/flows/FlowTriggers.vue @@ -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) { diff --git a/ui/src/stores/trigger.js b/ui/src/stores/trigger.js index 2e5e8e4a3c..b3fd81dbcd 100644 --- a/ui/src/stores/trigger.js +++ b/ui/src/stores/trigger.js @@ -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; }) },