Compare commits

...

2 Commits

Author SHA1 Message Date
5a1cd5634a Do not nuke magnet URL when torrent gets removed 2025-10-14 14:31:55 +02:00
07d2677af1 Store server type on save 2025-10-14 14:29:51 +02:00
2 changed files with 7 additions and 4 deletions

View File

@@ -137,8 +137,10 @@ class trdom_torrentcontrol extends EventTarget {
break; break;
case 'torrent-deleted': case 'torrent-deleted':
this.#log(6, 'we be delet'); this.#log(6, 'we be delet');
this.#data = null; if (this.exists) {
this.updateDOM(); delete this.#data.name;
this.updateDOM();
}
break; break;
case 'torrent-updated': case 'torrent-updated':
if (e.detail.torrentHash == this.#hash) { if (e.detail.torrentHash == this.#hash) {

View File

@@ -273,8 +273,9 @@ class trserver extends EventTarget {
getInstanceData() { getInstanceData() {
return { return {
'rpcurl': this.#rpcurl, type: 'transmission',
'auth': this.#authHeader rpcurl: this.#rpcurl,
auth: this.#authHeader
}; };
} }