From 857abed3a92eb6b02a9fd14d2eff20b7a94ed8b4 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 18 Dec 2024 21:26:17 +0100 Subject: [PATCH] Move RepoBranchTagSelector init outside the SFC (#32890) SFCs shouldn't export anything besides their component, and this eliminates one issue with tsc, while apparently also solving a hack. It seems to work as before, also when multiples are on the same page. --- .../js/components/RepoBranchTagSelector.vue | 75 ++++++++----------- web_src/js/features/repo-legacy.ts | 9 ++- web_src/js/globals.d.ts | 1 - 3 files changed, 38 insertions(+), 47 deletions(-) diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 4b7ca1429d..a5ed8b6dad 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -1,5 +1,5 @@