()
| 144 | } |
| 145 | |
| 146 | openPopup() { |
| 147 | return new Promise((resolve, reject) => { |
| 148 | this.popupPromise = {resolve, reject}; |
| 149 | mvelo.windows.openPopup(`components/import-key/importKey.html?id=${this.id}`, {width: 910, height: 554}) |
| 150 | .then(popup => { |
| 151 | this.importPopup = popup; |
| 152 | popup.addRemoveListener(() => { |
| 153 | this.importPopup = null; |
| 154 | this.handleCancel(); |
| 155 | }); |
| 156 | }); |
| 157 | }); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | /** |
no test coverage detected