()
| 58 | } |
| 59 | |
| 60 | handleCancel() { |
| 61 | this.closePopup(); |
| 62 | if (this.invalidated) { |
| 63 | this.popupPromise.resolve('INVALIDATED'); |
| 64 | } else if (this.importError) { |
| 65 | this.popupPromise.reject({message: 'An error occured during key import', code: 'IMPORT_ERROR'}); |
| 66 | } else { |
| 67 | this.popupPromise.resolve('REJECTED'); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | closePopup() { |
| 72 | if (this.importPopup) { |
no test coverage detected