only show close button when not in a dialog, which already has one

pull/21833/head
Bruno Windels 2020-03-26 17:02:32 +01:00
parent 4f3842d75e
commit a6fbb98252
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ const EncryptionPanel = (props) => {
}, [request]);
let cancelButton;
if (request && request.pending) {
if (layout !== "dialog" && request && request.pending) {
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
cancelButton = (<AccessibleButton
className="mx_EncryptionPanel_cancel"