How to use the cwlts/models/helpers/validation/ErrorCode.ErrorCode.ALL function in cwlts

To help you get started, we’ve selected a few cwlts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rabix / composer / src / app / tool-editor / sections / file-def-list / file-def-list.component.ts View on Github external
this.modal.delete("file requirement").then(() => {
            if (this.inspector.isInspecting(listing[index].loc)) {
                this.inspector.hide();
            }

            if (entryFromList instanceof ExpressionModel) {
                entryFromList.clearIssue(ErrorCode.ALL);
            } else if (entryFromList instanceof DirentModel) {

                const {entry, entryName} = entryFromList;
                entry.clearIssue(ErrorCode.ALL);
                entryName.clearIssue(ErrorCode.ALL);

            }

            this.fileRequirement.listing = listing.slice(0, index).concat(listing.slice(index + 1));
            this.update.next(this.fileRequirement.listing);
        }, err => console.warn);
github rabix / composer / src / app / tool-editor / sections / file-def-list / file-def-list.component.ts View on Github external
this.modal.delete("file requirement").then(() => {
            if (this.inspector.isInspecting(listing[index].loc)) {
                this.inspector.hide();
            }

            if (entryFromList instanceof ExpressionModel) {
                entryFromList.clearIssue(ErrorCode.ALL);
            } else if (entryFromList instanceof DirentModel) {

                const {entry, entryName} = entryFromList;
                entry.clearIssue(ErrorCode.ALL);
                entryName.clearIssue(ErrorCode.ALL);

            }

            this.fileRequirement.listing = listing.slice(0, index).concat(listing.slice(index + 1));
            this.update.next(this.fileRequirement.listing);
        }, err => console.warn);