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;
case 'torrent-deleted':
this.#log(6, 'we be delet');
this.#data = null;
if (this.exists) {
delete this.#data.name;
this.updateDOM();
}
break;
case 'torrent-updated':
if (e.detail.torrentHash == this.#hash) {

View File

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