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 | 4x 4x 4x 4x 4x 4x 4x 4x 2x 2x 2x 1x 1x | import { Component } from "@angular/core" import { markPackages, unmarkPackage } from "../../../store/fileSettings/markedPackages/markedPackages.actions" import { markFolderItemsSelector } from "./selectors/markFolderItems.selector" import { CcState } from "../../../../codeCharta.model" import { rightClickedCodeMapNodeSelector } from "../rightClickedCodeMapNode.selector" import { Store } from "@ngrx/store" import { ColorPickerComponent } from "../../../../ui/colorPicker/colorPicker.component" import { AsyncPipe } from "@angular/common" @Component({ selector: "cc-mark-folder-row", templateUrl: "./markFolderRow.component.html", styleUrls: ["./markFolderRow.component.scss"], standalone: true, imports: [ColorPickerComponent, AsyncPipe] }) export class MarkFolderRowComponent { markFolderItems$ = this.store.select(markFolderItemsSelector) codeMapNode$ = this.store.select(rightClickedCodeMapNodeSelector) constructor(private store: Store<CcState>) {} markFolder(path: string, color: string) { this.store.dispatch(markPackages({ packages: [{ path, color }] })) } unmarkFolder(path: string) { this.store.dispatch(unmarkPackage({ path })) } } |