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. 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") {