Compare commits
3 Commits
2026.01.09
...
2026.01.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f1b89e04a | ||
|
|
846c4f0e52 | ||
|
|
c13431c10d |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/ui/node_modules
|
/ui/node_modules
|
||||||
|
/ui/package-lock.json
|
||||||
|
|
||||||
# profiling files
|
# profiling files
|
||||||
chrome-profiler-events*.json
|
chrome-profiler-events*.json
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
||||||
"@ng-bootstrap/ng-bootstrap": "^20.0.0",
|
"@ng-bootstrap/ng-bootstrap": "^20.0.0",
|
||||||
"@ng-select/ng-select": "^21.1.0",
|
"@ng-select/ng-select": "^21.1.0",
|
||||||
|
"@popperjs/core": "^2.11.8",
|
||||||
"bootstrap": "^5.3.6",
|
"bootstrap": "^5.3.6",
|
||||||
"ngx-cookie-service": "^21.1.0",
|
"ngx-cookie-service": "^21.1.0",
|
||||||
"ngx-socket-io": "~4.9.3",
|
"ngx-socket-io": "~4.9.3",
|
||||||
|
|||||||
@@ -118,12 +118,15 @@ export class DownloadsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public delById(where: State, ids: string[]) {
|
public delById(where: State, ids: string[]) {
|
||||||
ids.forEach(id => {
|
const map = this[where];
|
||||||
const obj = this[where].get(id)
|
if (map) {
|
||||||
|
for (const id of ids) {
|
||||||
|
const obj = map.get(id);
|
||||||
if (obj) {
|
if (obj) {
|
||||||
obj.deleting = true
|
obj.deleting = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
return this.http.post('delete', {where: where, ids: ids});
|
return this.http.post('delete', {where: where, ids: ids});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user