File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed
eform-client/src/app/modules
cases/components/case-elements/element-audio
eform/components/eform-page Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 4848 -->
4949 <system .web>
5050 <compilation debug =" true" targetFramework =" 4.6.1" />
51- <httpRuntime targetFramework =" 4.6" />
51+ <httpRuntime targetFramework =" 4.6" maxRequestLength = " 1024000 " />
5252 <httpModules />
5353 </system .web>
5454 <system .webServer>
6363 </handlers >
6464 <validation validateIntegratedModeConfiguration =" false" />
6565 <modules />
66+ <security >
67+ <requestFiltering >
68+ <requestLimits maxAllowedContentLength =" 2147483648" />
69+ </requestFiltering >
70+ </security >
6671 </system .webServer>
6772 <runtime >
6873 <assemblyBinding xmlns =" urn:schemas-microsoft-com:asm.v1" >
Original file line number Diff line number Diff line change 1- < audio controls preload ="auto " src ="/api/audio/eform-audio?fileName={{fieldValueObj.uploadedDataObj.fileName}} ">
1+ < audio controls preload ="auto "
2+ *ngIf ="fieldValueObj.uploadedDataObj && fieldValueObj.uploadedDataObj.fileName "
3+ src ="/api/audio/eform-audio?fileName={{fieldValueObj.uploadedDataObj.fileName}} ">
24 This text displays if the audio tag isn't supported.
35</ audio >
46< trumbowyg-editor [(content)] ="fieldValueObj.value "> </ trumbowyg-editor >
Original file line number Diff line number Diff line change @@ -501,7 +501,8 @@ <h4>{{ 'Create eForm' | translate }}</h4>
501501 < label class ="mt-validation-container " for ="eFormXML ">
502502 {{ 'XML from eForm Builder' | translate }}
503503 </ label >
504- < textarea [(ngModel)] ="eFormCreateModel.eFormXml " class ="form-control " placeholder ="{{ 'Paste XML here' | translate }} "
504+ < textarea [(ngModel)] ="eFormCreateModel.eFormXml "
505+ class ="form-control " placeholder ="{{ 'Paste XML here' | translate }} "
505506 name ="eFormXML " id ="eFormXml " rows ="20 " > </ textarea >
506507 </ div >
507508 </ div >
@@ -512,8 +513,8 @@ <h4>{{ 'Create eForm' | translate }}</h4>
512513 (click) ="createTemplateModal.dismiss() " id ="createEFormCancelBtn ">
513514 {{ 'Cancel' | translate }}</ button >
514515 < button type ="button " class ="btn btn-success "
515- [disabled] ="isTagAddOpen && !eFormCreateModel.newTag "
516+ [disabled] ="( isTagAddOpen && !eFormCreateModel.newTag) || isEformCreating "
516517 (click) ="submitTemplateCreateModal() " id ="createEFormSaveEFormBtn ">
517- {{ 'Save eForm' | translate }}</ button >
518+ {{ 'Save eForm' | translate }} < i *ngIf =" isEformCreating " class =" fa fa-spinner fa-spin " > </ i > </ button >
518519 </ modal-footer >
519520</ modal >
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export class EFormTableComponent implements OnInit {
3131 matchFound = false ;
3232 isDeploying = false ;
3333 isTagsProcessing = false ;
34+ isEformCreating = false ;
3435
3536 eFormCreateModel : EFormCreateModel = new EFormCreateModel ( ) ;
3637 templateListModel : TemplateListModel = new TemplateListModel ( ) ;
@@ -157,7 +158,8 @@ export class EFormTableComponent implements OnInit {
157158 // Create modal
158159 createSingleTemplate ( ) {
159160 if ( this . eFormCreateModel != null ) {
160- this . eFormService . createSingle ( this . eFormCreateModel ) . subscribe ( operation => {
161+ this . isEformCreating = true ;
162+ this . eFormService . createSingle ( this . eFormCreateModel ) . subscribe ( ( operation => {
161163 if ( operation && operation . success ) {
162164 this . loadAllTemplates ( ) ;
163165 this . eFormCreateModel = new EFormCreateModel ;
@@ -166,7 +168,10 @@ export class EFormTableComponent implements OnInit {
166168 this . notifyService . error ( { text : operation . message || 'Error' } ) ;
167169 }
168170 this . createTemplateModal . close ( ) ;
171+ this . isEformCreating = false ;
169172 this . loadAllTags ( ) ;
173+ } ) , error => {
174+ this . isEformCreating = false ;
170175 } ) ;
171176 }
172177 }
You can’t perform that action at this time.
0 commit comments