mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-20 08:08:58 +00:00
fix: explain why a non-admin cannot edit an email trigger's address (#12503)
The "Admin only" note in the email trigger editor was gated on `!userCanEditConfig && isDraftOnly`, which can never hold since a draft always grants edit rights. Show it whenever the local part is locked, once the acting user is known, and name the fields it locks.
This commit is contained in:
@@ -116,9 +116,9 @@
|
||||
<TestingBadge />
|
||||
{/if}
|
||||
{/snippet}
|
||||
{#if !userCanEditConfig && isDraftOnly}
|
||||
{#if actingUser && !userCanEditConfig}
|
||||
<Alert type="info" title="Admin only" collapsible size="xs">
|
||||
Email triggers can only be edited by workspace admins
|
||||
The local part and workspace prefix can only be changed by workspace admins
|
||||
</Alert>
|
||||
<div class="my-2"></div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user