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 29 30 31 32 33 | 3x 3x 3x 3x 3x 2x | import { Component, Input } from "@angular/core"
import { Store } from "@ngrx/store"
import { CodeMapNode } from "../../../../codeCharta.model"
import { addBlacklistItemsIfNotResultsInEmptyMap } from "../../../store/fileSettings/blacklist/blacklist.actions"
import { MatButton } from "@angular/material/button"
@Component({
selector: "cc-exclude-button",
templateUrl: "./excludeButton.component.html",
styleUrls: ["../nodeContextMenuButton.component.scss"],
standalone: true,
imports: [MatButton]
})
export class ExcludeButtonComponent {
@Input() codeMapNode: Pick<CodeMapNode, "path" | "type">
constructor(private store: Store) {}
excludeNode() {
this.store.dispatch(
addBlacklistItemsIfNotResultsInEmptyMap({
items: [
{
path: this.codeMapNode.path,
type: "exclude",
nodeType: this.codeMapNode.type
}
]
})
)
}
}
|