From e21a41de8c58c49294cd1c1821b23503023c9d9e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 8 Sep 2023 08:44:22 +0200 Subject: [PATCH] Add option to render button as link (#2378) Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1259 Work from https://github.com/woodpecker-ci/woodpecker/pull/1602/files With this approach, existing buttons are still working and buttons with `to="https://..."` are rendered as `a` tag. Not sure about the "recursive render" issue from the original PR, have not seen any rendering issue, any idea about this? ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/2e87be21-3d3d-47b3-a2c4-1ffe5cfee592) --- web/src/components/atomic/Button.vue | 31 ++++++++++++---------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/web/src/components/atomic/Button.vue b/web/src/components/atomic/Button.vue index 90095eef9..c373fedbc 100644 --- a/web/src/components/atomic/Button.vue +++ b/web/src/components/atomic/Button.vue @@ -1,6 +1,7 @@