Address paste fix + closeConfirmationModal fix
This commit is contained in:
parent
126f850f9f
commit
a620272dd9
@ -13,4 +13,4 @@
|
||||
<a class="btn refusal-btn" onclick="closeConfirmationModal()">Refuse</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -76,7 +76,7 @@ export default class Routing {
|
||||
window.onclick = (event) => {
|
||||
const modal = document.getElementById('modal');
|
||||
if (event.target === modal) {
|
||||
this.confirmPairing();
|
||||
this.closeConfirmationModal();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -109,6 +109,8 @@ export default class Routing {
|
||||
}
|
||||
|
||||
async closeConfirmationModal() {
|
||||
const service = await Services.getInstance()
|
||||
await service.unpairDevice()
|
||||
const modal = document.getElementById('modal')
|
||||
if (modal) modal.style.display = 'none';
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user