mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-24 19:06:22 +02:00
lints
This commit is contained in:
parent
a8c2d139f9
commit
068ef6d6d5
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user