Fox sorting and magnet links
Magnet button stays disabled
This commit is contained in:
@@ -80,14 +80,16 @@ class trdom_servermanager extends EventTarget {
|
||||
let initControls = {};
|
||||
let initHash = e.detail.torrentHash;
|
||||
for (const [srv, server] of Object.entries(this.#servers)) {
|
||||
let control = server == e.detail.serverObject ? e.detail.torrentControl : new trdom_torrentcontrol(initHash, server, null, this.#logcb);
|
||||
let control = server == e.detail.serverObject ? e.detail.torrentControl : new trdom_torrentcontrol(initHash, server, {magnetLink: e.detail.torrentControl.magnet}, this.#logcb);
|
||||
//server.addControl(control);
|
||||
initControls[srv] = control;
|
||||
}
|
||||
let initEvent = new CustomEvent('torrent-created', {
|
||||
detail: {
|
||||
torrentHash: initHash,
|
||||
torrentControls: initControls
|
||||
torrentControls: initControls,
|
||||
torrentName: e.detail.torrentControl.name,
|
||||
magnetLink: e.detail.torrentControl.magnet
|
||||
}
|
||||
});
|
||||
this.dispatchEvent(initEvent);
|
||||
|
||||
Reference in New Issue
Block a user