Fox sorting and magnet links
Magnet button stays disabled
This commit is contained in:
@@ -18,7 +18,20 @@ class trdom_torrentcontrol extends EventTarget {
|
||||
|
||||
#data;
|
||||
get exists() {
|
||||
return this.#data != null;
|
||||
return this.#data != null && this.#data.name != null;
|
||||
}
|
||||
get name() {
|
||||
return this.exists ? this.#data.name : this.#hash;
|
||||
}
|
||||
get magnet() {
|
||||
return this.#data != null ? this.#data.magnetLink : null;
|
||||
}
|
||||
set magnet(value) {
|
||||
if (this.#data == null) {
|
||||
this.#data = {};
|
||||
}
|
||||
this.#data.magnetLink = value;
|
||||
this.updateDOM();
|
||||
}
|
||||
|
||||
updateDOM() {
|
||||
|
||||
Reference in New Issue
Block a user