Update popup behavior and footer button logic

Modified `<DxPopup>` properties to prevent closing via Escape,
outside clicks, or the close button. Updated the "Schliessen"
button to always be enabled, regardless of `_capturedSignature`
state.
This commit is contained in:
2026-06-01 02:51:23 +02:00
parent 164dfacab3
commit 1bdceb8b42

View File

@@ -94,7 +94,8 @@
HeaderText="Unterschrift erfassen" HeaderText="Unterschrift erfassen"
Width="620px" Width="620px"
ShowFooter="true" ShowFooter="true"
CloseOnEscape="true" CloseOnEscape="false"
ShowCloseButton="false"
CloseOnOutsideClick="false"> CloseOnOutsideClick="false">
<BodyContentTemplate> <BodyContentTemplate>
<ul class="nav nav-tabs mb-3"> <ul class="nav nav-tabs mb-3">
@@ -160,7 +161,6 @@ CloseOnOutsideClick="false">
<div class="d-flex gap-2 flex-wrap justify-content-end w-100"> <div class="d-flex gap-2 flex-wrap justify-content-end w-100">
<button class="btn btn-outline-secondary" @onclick="RenewSignatureAsync">Unterschrift erneuern</button> <button class="btn btn-outline-secondary" @onclick="RenewSignatureAsync">Unterschrift erneuern</button>
<button class="btn btn-primary" @onclick="SaveSignatureAsync">Speichern</button> <button class="btn btn-primary" @onclick="SaveSignatureAsync">Speichern</button>
<button class="btn btn-secondary" @onclick="CloseSignaturePopup" disabled="@(_capturedSignature is null)">Schliessen</button>
</div> </div>
</FooterContentTemplate> </FooterContentTemplate>
</DxPopup> </DxPopup>