Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Make DS properties menu spawn with sequential datasets #181

Open
wants to merge 3 commits into
base: v2.x/staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,35 @@ export class DatasetPropertiesModal implements OnInit {
case "V":
recordFormat = "V - Variable"
break;
default:
recordFormat = "N/A"
break;
}
return recordFormat;
}

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") {
Expand Down