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

This commit is contained in:
Bruno Windels 2020-03-26 17:02:32 +01:00
parent 4f3842d75e
commit a6fbb98252

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"