mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Extra check on loading state before allow closing
This commit is contained in:
parent
e274950324
commit
9bc5340714
1 changed files with 7 additions and 0 deletions
|
@ -289,6 +289,12 @@ function Compose({
|
|||
return true;
|
||||
}
|
||||
|
||||
// check if loading
|
||||
if (uiState !== 'loading') {
|
||||
console.log('canClose', { uiState });
|
||||
return true;
|
||||
}
|
||||
|
||||
console.log('canClose', {
|
||||
value,
|
||||
hasMediaAttachments,
|
||||
|
@ -297,6 +303,7 @@ function Compose({
|
|||
isSelf,
|
||||
hasOnlyAcct,
|
||||
sameWithSource,
|
||||
uiState,
|
||||
});
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue