Fixed issue with some downloads not processed. Fixed issue with deletion and files in use.
34 lines
803 B
TypeScript
34 lines
803 B
TypeScript
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
import { Torrent } from 'src/app/models/torrent.model';
|
|
|
|
@Component({
|
|
selector: '[app-torrent-row]',
|
|
templateUrl: './torrent-row.component.html',
|
|
styleUrls: ['./torrent-row.component.scss'],
|
|
})
|
|
export class TorrentRowComponent implements OnInit {
|
|
@Input()
|
|
public torrent: Torrent;
|
|
|
|
@Output('delete')
|
|
public delete = new EventEmitter();
|
|
|
|
@Output('retry')
|
|
public retry = new EventEmitter();
|
|
|
|
public loading = false;
|
|
|
|
constructor() {}
|
|
|
|
ngOnInit(): void {}
|
|
|
|
public deleteClick(event: Event): void {
|
|
event.stopPropagation();
|
|
this.delete.emit(this.torrent.torrentId);
|
|
}
|
|
|
|
public retryClick(event: Event): void {
|
|
event.stopPropagation();
|
|
this.retry.emit(this.torrent.torrentId);
|
|
}
|
|
}
|