mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-26 14:45:50 +00:00
Removed reset button from HTML dialog elements
This commit is contained in:
@@ -3,7 +3,6 @@ window.electronAPI.onOpenSeedDialog((_event) => {
|
||||
const seedDialog = document.getElementById('seed-dialog');
|
||||
const seedInput = seedDialog.querySelector('input');
|
||||
const submitButton = seedDialog.querySelector('button[type="submit"]');
|
||||
const resetButton = seedDialog.querySelector('button[type="reset"]');
|
||||
|
||||
submitButton.addEventListener('click', () => {
|
||||
const seed = seedInput.value;
|
||||
@@ -11,10 +10,6 @@ window.electronAPI.onOpenSeedDialog((_event) => {
|
||||
seedDialog.close()
|
||||
});
|
||||
|
||||
resetButton.addEventListener('click', () => {
|
||||
seedInput.value = '';
|
||||
});
|
||||
|
||||
seedDialog.showModal()
|
||||
})
|
||||
|
||||
@@ -22,7 +17,6 @@ window.electronAPI.onOpenPasswordDialog((_event) => {
|
||||
const passwordDialog = document.getElementById('password-dialog');
|
||||
const passwordInput = passwordDialog.querySelector('input');
|
||||
const submitButton = passwordDialog.querySelector('button[type="submit"]');
|
||||
const resetButton = passwordDialog.querySelector('button[type="reset"]');
|
||||
|
||||
submitButton.addEventListener('click', () => {
|
||||
const password = passwordInput.value;
|
||||
@@ -30,10 +24,6 @@ window.electronAPI.onOpenPasswordDialog((_event) => {
|
||||
passwordDialog.close()
|
||||
});
|
||||
|
||||
resetButton.addEventListener('click', () => {
|
||||
passwordInput.value = '';
|
||||
});
|
||||
|
||||
passwordDialog.showModal()
|
||||
});
|
||||
// Step 5 code additions - end
|
||||
|
||||
Reference in New Issue
Block a user