From bb8c88f291e9c12fdf4d4165635aaa5405fd0267 Mon Sep 17 00:00:00 2001 From: Leanid Astrakou Date: Thu, 17 Nov 2022 12:21:30 -0500 Subject: [PATCH 1/2] Make DS properties menu spawn with sequential datasets Signed-off-by: Leanid Astrakou --- .../dataset-properties-modal.component.ts | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/components/dataset-properties-modal/dataset-properties-modal.component.ts b/src/app/components/dataset-properties-modal/dataset-properties-modal.component.ts index 1945f5fc..dd032d73 100644 --- a/src/app/components/dataset-properties-modal/dataset-properties-modal.component.ts +++ b/src/app/components/dataset-properties-modal/dataset-properties-modal.component.ts @@ -92,6 +92,9 @@ export class DatasetPropertiesModal implements OnInit { case "V": recordFormat = "V - Variable" break; + default: + recordFormat = "N/A" + break; } return recordFormat; } @@ -99,17 +102,25 @@ export class DatasetPropertiesModal implements OnInit { formatSummary(org: string, recfm: string, reclen: number): string { let summary = "N/A"; if (org.substring(0, 2) == "PS") { - if (recfm[0] == 'F') { - if (reclen > 0) { - summary = "FB" + reclen; - } else { - summary = "FB"; + if (recfm && recfm != "N/A") { + if (recfm[0] == 'F') { + if (reclen > 0) { + summary = "FB" + reclen; + } else { + summary = "FB"; + } + } else if (recfm[0] == 'V') { + if (reclen > 0) { + summary = "VB" + reclen; + } else { + summary = "VB"; + } } - } else if (recfm[0] == 'V') { + } else { if (reclen > 0) { - summary = "VB" + reclen; + summary = "S" + reclen; } else { - summary = "VB"; + summary = "S"; } } } else if (org.substring(0, 2) == "PO") { From 75e730dcf636a52da01351734eb9e5c33768f5ff Mon Sep 17 00:00:00 2001 From: Leanid Astrakou Date: Thu, 17 Nov 2022 12:29:14 -0500 Subject: [PATCH 2/2] Update CHANGELOG Signed-off-by: Leanid Astrakou --- CHANGELOG.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dab16fdd..53244ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,17 @@ # ZLUX Angular File Tree ## 1.3.0 -* Added a UI for creating datasets +* Added a UI for creating datasets. +* Bugfix: Fixed DS Properties menu not spawning with sequential datasets. ## 1.2.0 -* Added the option to receive USS/MVS node data -* Added the option to copy path of USS file or dereoctory -* Bugfix: Set USS path to correct directory, when opening the directory or file in new browser tab respectively +* Added the option to receive USS/MVS node data. +* Added the option to copy path of USS file or directory. +* Bugfix: Set USS path to correct directory, when opening the directory or file in new browser tab respectively. ## 1.1.0 * Added the option to download the dataset file. -* Added create folder, delete and collapse icons in tree explorer. +* Added create folder, delete and collapse icons in the File Tree. * Rename the file when doing copy/paste, when same named file exists in destination. * Create an empty file by selecting the folder. * Bugfix: Fixing the bug to download the dataset file.