Removed reset button from HTML dialog elements

This commit is contained in:
AlexanderBuzz
2023-07-13 09:05:32 +02:00
parent 11d9ea8f69
commit 11b26958b3
12 changed files with 0 additions and 65 deletions

View File

@@ -615,7 +615,6 @@ onEnterAccountAddress: (address) => {
<input type="text" id="address-input" name="address-input" />
</div>
<div>
<button type="reset">Reset</button>
<button type="submit">Confirm</button>
</div>
</form>
@@ -904,7 +903,6 @@ contextBridge.exposeInMainWorld('electronAPI', {
<input type="text" id="seed-input" name="seed-input" />
</div>
<div>
<button type="reset">Reset</button>
<button type="submit">Confirm</button>
</div>
</form>
@@ -917,7 +915,6 @@ contextBridge.exposeInMainWorld('electronAPI', {
<input type="text" id="password-input" name="password-input" />
</div>
<div>
<button type="reset">Reset</button>
<button type="submit">Confirm</button>
</div>
</form>
@@ -931,7 +928,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;
@@ -939,10 +935,6 @@ window.electronAPI.onOpenSeedDialog((_event) => {
seedDialog.close()
});
resetButton.addEventListener('click', () => {
seedInput.value = '';
});
seedDialog.showModal()
})
@@ -950,7 +942,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;
@@ -958,10 +949,6 @@ window.electronAPI.onOpenPasswordDialog((_event) => {
passwordDialog.close()
});
resetButton.addEventListener('click', () => {
passwordInput.value = '';
});
passwordDialog.showModal()
});
```
@@ -1098,7 +1085,6 @@ After finishing this step the application should look like this:
<input type="text" id="seed-input" name="seed-input" />
</div>
<div>
<button type="reset">Reset</button>
<button type="submit">Confirm</button>
</div>
</form>
@@ -1111,7 +1097,6 @@ After finishing this step the application should look like this:
<input type="text" id="password-input" name="password-input" />
</div>
<div>
<button type="reset">Reset</button>
<button type="submit">Confirm</button>
</div>
</form>