From ef736b7e27f6eee292183c0f054f1595179db559 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 6 Jan 2025 17:38:42 +0800 Subject: [PATCH] Refactor legacy JS (#33115) --- templates/org/team/repositories.tmpl | 2 +- web_src/js/features/notification.ts | 6 ++-- web_src/js/features/org-team.ts | 39 +++++++++++++---------- web_src/js/features/repo-issue-sidebar.ts | 8 ++--- web_src/js/index.ts | 5 ++- 5 files changed, 31 insertions(+), 29 deletions(-) diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index 92c3d724ba..4f4667ca8b 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -9,7 +9,7 @@ {{template "org/team/navbar" .}} {{$canAddRemove := and $.IsOrganizationOwner (not $.Team.IncludesAllRepositories)}} {{if $canAddRemove}} -
+
{{.CsrfTokenHtml}}