0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-24 19:06:22 +02:00
This commit is contained in:
Excellencedev 2026-01-17 13:38:11 +01:00
parent a8c2d139f9
commit 068ef6d6d5

View File

@ -27,7 +27,7 @@ export function initActionsPermissionsTable(): void {
} }
if (tableSection) { if (tableSection) {
tableSection.style.opacity = shouldDisable ? '0.5' : '1'; tableSection.style.opacity = shouldDisable ? '0.5' : '1';
} }
// Disable table if layout is disabled OR max permissions not enabled // Disable table if layout is disabled OR max permissions not enabled
@ -41,14 +41,14 @@ export function initActionsPermissionsTable(): void {
} }
permTable.style.display = isMaxEnabled ? '' : 'none'; permTable.style.display = isMaxEnabled ? '' : 'none';
if (shouldDisable) { if (shouldDisable) {
permTable.style.opacity = '0.5'; permTable.style.opacity = '0.5';
// If disabled, we might want to hide it or just show disabled state? // If disabled, we might want to hide it or just show disabled state?
// If following Org config, the Org might have max permissions set. // If following Org config, the Org might have max permissions set.
// But here we are configuring the REPO overrides. // But here we are configuring the REPO overrides.
// If not overriding, we show nothing (or disabled state). // If not overriding, we show nothing (or disabled state).
// Current logic dims everything. // Current logic dims everything.
} else { } else {
permTable.style.opacity = '1'; permTable.style.opacity = '1';
} }
} }
} }