mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
Removed reset button from HTML dialog elements
This commit is contained in:
@@ -2,7 +2,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;
|
||||
@@ -10,10 +9,6 @@ window.electronAPI.onOpenSeedDialog((_event) => {
|
||||
seedDialog.close()
|
||||
});
|
||||
|
||||
resetButton.addEventListener('click', () => {
|
||||
seedInput.value = '';
|
||||
});
|
||||
|
||||
seedDialog.showModal()
|
||||
})
|
||||
|
||||
@@ -21,7 +16,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;
|
||||
@@ -29,10 +23,6 @@ window.electronAPI.onOpenPasswordDialog((_event) => {
|
||||
passwordDialog.close()
|
||||
});
|
||||
|
||||
resetButton.addEventListener('click', () => {
|
||||
passwordInput.value = '';
|
||||
});
|
||||
|
||||
passwordDialog.showModal()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user