mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01: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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if loading
|
||||||
|
if (uiState !== 'loading') {
|
||||||
|
console.log('canClose', { uiState });
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
console.log('canClose', {
|
console.log('canClose', {
|
||||||
value,
|
value,
|
||||||
hasMediaAttachments,
|
hasMediaAttachments,
|
||||||
|
@ -297,6 +303,7 @@ function Compose({
|
||||||
isSelf,
|
isSelf,
|
||||||
hasOnlyAcct,
|
hasOnlyAcct,
|
||||||
sameWithSource,
|
sameWithSource,
|
||||||
|
uiState,
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue