Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 4x 4x 4x 4x 4x 4x 4x 4x 4x 10x 10x 10x 1x | import { Component } from "@angular/core"
import { Store } from "@ngrx/store"
import { BlacklistItem, CcState } from "../../../../codeCharta.model"
import { removeBlacklistItem } from "../../../../state/store/fileSettings/blacklist/blacklist.actions"
import { createBlacklistItemSelector } from "./createBlacklistItemSelector"
import { MatList, MatListItem } from "@angular/material/list"
import { MatTooltip } from "@angular/material/tooltip"
import { MatButton } from "@angular/material/button"
import { AsyncPipe } from "@angular/common"
@Component({
selector: "cc-blacklist-panel",
templateUrl: "./blacklistPanel.component.html",
styleUrls: ["./blacklistPanel.component.scss"],
standalone: true,
imports: [MatList, MatTooltip, MatListItem, MatButton, AsyncPipe]
})
export class BlacklistPanelComponent {
flattenedItems$ = this.store.select(createBlacklistItemSelector("flatten"))
excludedItems$ = this.store.select(createBlacklistItemSelector("exclude"))
constructor(private store: Store<CcState>) {}
removeBlacklistEntry(item: BlacklistItem) {
this.store.dispatch(removeBlacklistItem({ item }))
}
}
|