mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 16:01:42 +00:00
fix: drop the unreachable no-ruleset tooltip fallback
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -574,8 +574,8 @@
|
||||
if (dev) {
|
||||
return `Edits to this workspace are made in its ${devLabelNoun(dev.dev_workspace_label)} ${dev.name} (${dev.id}) and promoted here.`
|
||||
}
|
||||
// Non-empty wherever this is read: the entry is only disabled when the same rulesets say so.
|
||||
const rulesets = getActiveRulesetsForKind('DisableDirectDeployment')
|
||||
if (rulesets.length === 0) return 'Direct edits to this workspace are restricted.'
|
||||
const names = rulesets.map((r) => r.name).join(', ')
|
||||
return rulesets.length > 1
|
||||
? `The rules ${names} restrict direct edits to this workspace.`
|
||||
|
||||
Reference in New Issue
Block a user