0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-21 09:05:12 +01:00
This commit is contained in:
Excellencedev 2026-01-06 16:04:30 +01:00
parent 9610d7f27a
commit b4a17dffa5
2 changed files with 2 additions and 4 deletions

View File

@ -42,7 +42,7 @@ func ActionsGeneral(ctx *context.Context) {
// Load Allowed Repositories
var allowedRepos []*repo_model.Repository
if len(actionsCfg.AllowedCrossRepoIDs) > 0 {
// Since the list shouldn't be too long, we can loop.
// Since the list shouldn't be too long, we can loop.
// Ideally use GetRepositoriesByIDs but simple loop is fine for now.
for _, id := range actionsCfg.AllowedCrossRepoIDs {
repo, err := repo_model.GetRepositoryByID(ctx, id)

View File

@ -52,9 +52,7 @@ export function initActionsPermissionsTable(): void {
function updateCrossRepoState(): void {
const selectedMode = document.querySelector<HTMLInputElement>('input[name="cross_repo_mode"]:checked');
const isSelected = selectedMode?.value === 'selected';
if (allowedReposSection) {
allowedReposSection.style.display = isSelected ? '' : 'none';
}
allowedReposSection!.style.display = isSelected ? '' : 'none';
}
for (const radio of crossRepoRadios) {