mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
only show close button when not in a dialog, which already has one
This commit is contained in:
parent
4f3842d75e
commit
a6fbb98252
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ const EncryptionPanel = (props) => {
|
||||||
}, [request]);
|
}, [request]);
|
||||||
|
|
||||||
let cancelButton;
|
let cancelButton;
|
||||||
if (request && request.pending) {
|
if (layout !== "dialog" && request && request.pending) {
|
||||||
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
||||||
cancelButton = (<AccessibleButton
|
cancelButton = (<AccessibleButton
|
||||||
className="mx_EncryptionPanel_cancel"
|
className="mx_EncryptionPanel_cancel"
|
||||||
|
|
Loading…
Reference in a new issue