Skip to content

Commit

Permalink
Merge pull request #1652 from GuliyanK/2.1/bug/978796
Browse files Browse the repository at this point in the history
[#978796] Fix display C# compilation error in operations settings
  • Loading branch information
stasguryev committed Aug 30, 2021
2 parents a250e4e + 84f1b5d commit 6a33989
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/form/editors/CodeEditorView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export default formRepository.editors.Code = BaseEditorView.extend({

async isCompilationError(isHideCompileMessage) {
const isErrors = await this.editor.__isCompilationError(isHideCompileMessage);
if (isErrors) {
this.setError([{ id: `${this.key}`, message: Localizer.get('PROCESS.PROCESSTEMPLATES.DESIGNER.VALIDATION.ERRORS.CSHARPCOMPILATIONERROR') }]);
}
return isErrors;
},

Expand Down
2 changes: 1 addition & 1 deletion src/form/editors/UriEditorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const classes = {
hidden: 'editor_hidden',
FOCUSED: 'editor_focused',
EMPTY: 'editor_empty',
ERROR: 'editor_error error',
ERROR: 'js-editor_error editor_error error',
REQUIRED: 'required'
};

Expand Down
2 changes: 1 addition & 1 deletion src/form/editors/base/MarionetteEditorPrototype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const classes = {
hidden: 'editor_hidden',
FOCUSED: 'editor_focused',
EMPTY: 'editor_empty',
ERROR: 'editor_error error',
ERROR: 'js-editor_error editor_error error',
REQUIRED: 'required'
};

Expand Down

0 comments on commit 6a33989

Please sign in to comment.