[frontend/components] Disable close button while sending note or uploading file
This commit is contained in:
parent
22f1d7c8e1
commit
98bffe58d3
2 changed files with 2 additions and 1 deletions
|
@ -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"/>
|
||||
|
|
|
@ -115,6 +115,7 @@
|
|||
}
|
||||
|
||||
::deep {
|
||||
.btn[disabled],
|
||||
.post-btn[disabled] {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
|
|
Loading…
Add table
Reference in a new issue