From 225b686de67e92a8b8fef48ad0c098908c112e67 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 18 Oct 2024 15:23:37 +0200 Subject: [PATCH] trigger protocol render (temporary) --- src/stores/admin/protocol.ts | 6 ++++++ src/views/admin/club/protocol/ProtocolRouting.vue | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/stores/admin/protocol.ts b/src/stores/admin/protocol.ts index 3c637d8..8262291 100644 --- a/src/stores/admin/protocol.ts +++ b/src/stores/admin/protocol.ts @@ -100,5 +100,11 @@ export const useProtocolStore = defineStore("protocol", { }) .catch((err) => {}); }, + printProtocol() { + return http + .post(`/admin/protocol/${this.activeProtocol}/render`) + .then(() => {}) + .catch(() => {}); + }, }, }); diff --git a/src/views/admin/club/protocol/ProtocolRouting.vue b/src/views/admin/club/protocol/ProtocolRouting.vue index b11567f..f5380fd 100644 --- a/src/views/admin/club/protocol/ProtocolRouting.vue +++ b/src/views/admin/club/protocol/ProtocolRouting.vue @@ -6,6 +6,7 @@