|
@@ -64,15 +64,8 @@ class WaitForOwnerDialog extends PureComponent<Props> {
|
64
|
64
|
*/
|
65
|
65
|
_onCancelWaitForOwner() {
|
66
|
66
|
const { dispatch } = this.props;
|
67
|
|
- const cancelButton = document.getElementById('modal-dialog-cancel-button');
|
68
|
67
|
|
69
|
|
- if (cancelButton) {
|
70
|
|
- cancelButton.onclick = () => {
|
71
|
|
- dispatch(cancelWaitForOwner());
|
72
|
|
- };
|
73
|
|
- }
|
74
|
|
-
|
75
|
|
- return false;
|
|
68
|
+ dispatch(cancelWaitForOwner());
|
76
|
69
|
}
|
77
|
70
|
|
78
|
71
|
_onIAmHost: () => void;
|
|
@@ -102,6 +95,7 @@ class WaitForOwnerDialog extends PureComponent<Props> {
|
102
|
95
|
|
103
|
96
|
return (
|
104
|
97
|
<Dialog
|
|
98
|
+ disableBlanketClickDismiss = { true }
|
105
|
99
|
hideCloseIconButton = { true }
|
106
|
100
|
okKey = { t('dialog.IamHost') }
|
107
|
101
|
onCancel = { this._onCancelWaitForOwner }
|