Tidy up block filter code, disable multisig flag
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, OnChanges, EventEmitter, Output, SimpleChanges, HostListener } from '@angular/core';
|
||||
import { FilterGroups, TransactionFilters, Filter, TransactionFlags } from '../../shared/filters.utils';
|
||||
import { Component, EventEmitter, Output, HostListener } from '@angular/core';
|
||||
import { FilterGroups, TransactionFilters } from '../../shared/filters.utils';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -7,7 +7,7 @@ import { FilterGroups, TransactionFilters, Filter, TransactionFlags } from '../.
|
||||
templateUrl: './block-filters.component.html',
|
||||
styleUrls: ['./block-filters.component.scss'],
|
||||
})
|
||||
export class BlockFiltersComponent implements OnChanges {
|
||||
export class BlockFiltersComponent {
|
||||
@Output() onFilterChanged: EventEmitter<bigint | null> = new EventEmitter();
|
||||
|
||||
filters = TransactionFilters;
|
||||
@@ -16,12 +16,6 @@ export class BlockFiltersComponent implements OnChanges {
|
||||
filterFlags: { [key: string]: boolean } = {};
|
||||
menuOpen: boolean = false;
|
||||
|
||||
constructor() {}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
|
||||
}
|
||||
|
||||
toggleFilter(key): void {
|
||||
const filter = this.filters[key];
|
||||
this.filterFlags[key] = !this.filterFlags[key];
|
||||
|
||||
Reference in New Issue
Block a user