mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-24 03:43:19 +03:00
Fixed bug where deleting videos while searching caused them to still show up in the UI
This commit is contained in:
@@ -251,6 +251,9 @@ export class RecentVideosComponent implements OnInit {
|
|||||||
this.postsService.openSnackBar('Delete success!', 'OK.');
|
this.postsService.openSnackBar('Delete success!', 'OK.');
|
||||||
this.files.splice(file.index, 1);
|
this.files.splice(file.index, 1);
|
||||||
for (let i = 0; i < this.files.length; i++) { this.files[i].index = i }
|
for (let i = 0; i < this.files.length; i++) { this.files[i].index = i }
|
||||||
|
if (this.search_mode) {
|
||||||
|
this.filterFiles(this.search_text);
|
||||||
|
}
|
||||||
this.filterByProperty(this.filterProperty['property']);
|
this.filterByProperty(this.filterProperty['property']);
|
||||||
} else {
|
} else {
|
||||||
this.postsService.openSnackBar('Delete failed!', 'OK.');
|
this.postsService.openSnackBar('Delete failed!', 'OK.');
|
||||||
|
|||||||
Reference in New Issue
Block a user