Fox sorting and magnet links

Magnet button stays disabled
This commit is contained in:
2025-10-14 08:23:38 +02:00
parent 1c798fb899
commit 2f20eee841
5 changed files with 28 additions and 7 deletions

View File

@@ -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);