Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrus-Sushiant committed Nov 12, 2023
1 parent 0aeb5b6 commit 4d605c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public long? ChunkSize
/// <summary>
/// Loading when do remove a file
/// </summary>
public bool IsLoadingRemove { get; private set; }
public bool IsRemoving { get; private set; }

protected override string RootElementClass => "bit-upl";

Expand Down Expand Up @@ -295,9 +295,9 @@ public void CancelUpload(BitFileInfo? fileInfo = null)
public async Task RemoveFile(BitFileInfo? fileInfo = null)
{
if (Files is null) return;
if (IsLoadingRemove) return;
if (IsRemoving) return;

IsLoadingRemove = true;
IsRemoving = true;

if (fileInfo is null)
{
Expand All @@ -311,7 +311,7 @@ public async Task RemoveFile(BitFileInfo? fileInfo = null)
await RemoveOneFile(fileInfo);
}

IsLoadingRemove = false;
IsRemoving = false;
}

protected override Task OnInitializedAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
else if (FileUpload.ShowRemoveButton)
{
@if (FileUpload.IsLoadingRemove)
@if (FileUpload.IsRemoving)
{
<div class="bit-upl-ldg">
<div class="bit-upl-spn"></div>
Expand Down

0 comments on commit 4d605c3

Please sign in to comment.