|
|
@ -178,8 +178,8 @@ export class MovieRequestsComponent implements OnInit {
|
|
|
|
public setOrder(value: string, el: any) {
|
|
|
|
public setOrder(value: string, el: any) {
|
|
|
|
el = el.toElement || el.relatedTarget || el.target || el.srcElement;
|
|
|
|
el = el.toElement || el.relatedTarget || el.target || el.srcElement;
|
|
|
|
|
|
|
|
|
|
|
|
let parent = el.parentElement;
|
|
|
|
const parent = el.parentElement;
|
|
|
|
let previousFilter = parent.querySelector(".active");
|
|
|
|
const previousFilter = parent.querySelector(".active");
|
|
|
|
|
|
|
|
|
|
|
|
if (this.order === value) {
|
|
|
|
if (this.order === value) {
|
|
|
|
this.reverse = !this.reverse;
|
|
|
|
this.reverse = !this.reverse;
|
|
|
|