mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +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]);
|
||||
|
||||
let cancelButton;
|
||||
if (request && request.pending) {
|
||||
if (layout !== "dialog" && request && request.pending) {
|
||||
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
||||
cancelButton = (<AccessibleButton
|
||||
className="mx_EncryptionPanel_cancel"
|
||||
|
|
Loading…
Reference in a new issue