mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-21 09:05:12 +01:00
lints
This commit is contained in:
parent
9610d7f27a
commit
b4a17dffa5
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user