mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
Fix broken Cancel and Rename buttons on RenameDialog. (#2577)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
a8818148e2
commit
f9d068d7a0
1 changed files with 2 additions and 2 deletions
|
@ -26,6 +26,8 @@ export class RenameDialog extends EventTarget {
|
|||
|
||||
this.torrents = torrents;
|
||||
this.elements = RenameDialog._create();
|
||||
this.elements.dismiss.addEventListener('click', () => this._onDismiss());
|
||||
this.elements.confirm.addEventListener('click', () => this._onConfirm());
|
||||
this.elements.entry.value = torrents[0].getName();
|
||||
document.body.append(this.elements.root);
|
||||
|
||||
|
@ -65,8 +67,6 @@ export class RenameDialog extends EventTarget {
|
|||
elements.root.setAttribute('aria-label', 'Rename Torrent');
|
||||
elements.heading.textContent = 'Enter new name:';
|
||||
elements.confirm.textContent = 'Rename';
|
||||
elements.dismiss.addEventListener('click', () => this._onDismiss());
|
||||
elements.confirm.addEventListener('click', () => this._onConfirm());
|
||||
|
||||
const label = document.createElement('label');
|
||||
label.setAttribute('for', 'torrent-rename-name');
|
||||
|
|
Loading…
Reference in a new issue