Disable popping-in/out and closing when loading

This commit is contained in:
Lim Chee Aun 2022-12-20 13:26:45 +08:00
parent 3921f8a6f9
commit e274950324

View file

@ -342,6 +342,7 @@ function Compose({
<button
type="button"
class="light"
disabled={uiState === 'loading'}
onClick={() => {
// If there are non-ID media attachments (not yet uploaded), show confirmation dialog because they are not going to be passed to the new window
const containNonIDMediaAttachments =
@ -386,6 +387,7 @@ function Compose({
<button
type="button"
class="light close-button"
disabled={uiState === 'loading'}
onClick={() => {
if (confirmClose()) {
onClose();
@ -400,6 +402,7 @@ function Compose({
<button
type="button"
class="light"
disabled={uiState === 'loading'}
onClick={() => {
// If there are non-ID media attachments (not yet uploaded), show confirmation dialog because they are not going to be passed to the new window
const containNonIDMediaAttachments =