[frontend/components] Disable close button while sending note or uploading file

This commit is contained in:
pancakes 2025-02-21 17:53:02 +10:00 committed by Laura Hausmann
parent 22f1d7c8e1
commit 98bffe58d3
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 1 deletions

View file

@ -20,7 +20,7 @@
<dialog @onkeydown="HandleKeyDown" class="dialog" @ref="Dialog">
<div class="compose">
<div class="header">
<button class="btn" title="@Loc["Close"]" @onclick="CloseDialog" aria-label="close">
<button class="btn" title="@Loc["Close"]" @onclick="CloseDialog" aria-label="close" disabled="@(SendLock || UploadingFiles != 0)">
<Icon Name="Icons.X"/>
</button>
<Dropdown TBind="NoteVisibility" Elements="@DropDownCreate()" @bind-Value="NoteDraft.Visibility"/>

View file

@ -115,6 +115,7 @@
}
::deep {
.btn[disabled],
.post-btn[disabled] {
opacity: 0.4;
cursor: not-allowed;