Skip to content

Commit

Permalink
Minor cleanup to use constants
Browse files Browse the repository at this point in the history
Signed-off-by: EKhan <[email protected]>
  • Loading branch information
enamkhan committed Feb 28, 2025
1 parent 2d13589 commit 7e145a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { CICSTree } from "../CICSTree";
import { CICSLocalFileTreeItem } from "../treeItems/CICSLocalFileTreeItem";
import { TextTreeItem } from "../treeItems/utils/TextTreeItem";
import { ViewMore } from "../treeItems/utils/ViewMore";
import { CicsCmciConstants } from "@zowe/cics-for-zowe-sdk";

export class CICSCombinedLocalFileTree extends TreeItem {
children: (CICSLocalFileTreeItem | ViewMore)[] | [TextTreeItem] | null;
Expand All @@ -40,7 +41,7 @@ export class CICSCombinedLocalFileTree extends TreeItem {
this.activeFilter = undefined;
this.currentCount = 0;
this.incrementCount = +`${workspace.getConfiguration().get("zowe.cics.allLocalFiles.recordCountIncrement")}`;
this.constant = "CICSLocalFile";
this.constant = CicsCmciConstants.CICS_CMCI_LOCAL_FILE;
}

public async loadContents(tree: CICSTree) {
Expand Down
3 changes: 2 additions & 1 deletion packages/vsce/src/trees/CICSLocalFileTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { getFolderIcon } from "../utils/iconUtils";
import { runGetResource } from "../utils/resourceUtils";
import { CICSRegionTree } from "./CICSRegionTree";
import { CICSLocalFileTreeItem } from "./treeItems/CICSLocalFileTreeItem";
import { CicsCmciConstants } from "@zowe/cics-for-zowe-sdk";

export class CICSLocalFileTree extends TreeItem {
children: CICSLocalFileTreeItem[] = [];
Expand Down Expand Up @@ -51,7 +52,7 @@ export class CICSLocalFileTree extends TreeItem {
try {
const localFileResponse = await runGetResource({
session: this.parentRegion.parentSession.session,
resourceName: "CICSLocalFile",
resourceName: CicsCmciConstants.CICS_CMCI_LOCAL_FILE,
regionName: this.parentRegion.getRegionName(),
cicsPlex: this.parentRegion.parentPlex ? this.parentRegion.parentPlex.getPlexName() : undefined,
params: { criteria: criteria },
Expand Down

0 comments on commit 7e145a2

Please sign in to comment.