···788788 }
789789790790 if (window.opener.__STATES__.showCompose) {
791791- const yes = confirm(
792792- 'Looks like you already have a compose field open in the parent window. Popping in this window will discard the changes you made in the parent window. Continue?',
793793- );
791791+ if (window.opener.__STATES__.composerState?.publishing) {
792792+ alert(
793793+ 'Looks like you already have a compose field open in the parent window and currently publishing. Please wait for it to be done and try again later.',
794794+ );
795795+ return;
796796+ }
797797+798798+ let confirmText =
799799+ 'Looks like you already have a compose field open in the parent window. Popping in this window will discard the changes you made in the parent window. Continue?';
800800+ const yes = confirm(confirmText);
794801 if (!yes) return;
795802 }
796803