Address paste fix + closeConfirmationModal fix

This commit is contained in:
NicolasCantu 2024-10-24 15:19:55 +02:00
parent 126f850f9f
commit a620272dd9
3 changed files with 779 additions and 762 deletions

View File

@ -13,4 +13,4 @@
<a class="btn refusal-btn" onclick="closeConfirmationModal()">Refuse</a> <a class="btn refusal-btn" onclick="closeConfirmationModal()">Refuse</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -76,7 +76,7 @@ export default class Routing {
window.onclick = (event) => { window.onclick = (event) => {
const modal = document.getElementById('modal'); const modal = document.getElementById('modal');
if (event.target === modal) { if (event.target === modal) {
this.confirmPairing(); this.closeConfirmationModal();
} }
} }
} }
@ -109,6 +109,8 @@ export default class Routing {
} }
async closeConfirmationModal() { async closeConfirmationModal() {
const service = await Services.getInstance()
await service.unpairDevice()
const modal = document.getElementById('modal') const modal = document.getElementById('modal')
if (modal) modal.style.display = 'none'; if (modal) modal.style.display = 'none';
} }

File diff suppressed because it is too large Load Diff