File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
UI/src/app/_components/settings Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -343,14 +343,16 @@ export class SettingsComponent {
343343
344344 public saveCurrentSource ( ) {
345345 for ( const field of this . getOptionFields ( this . socketService . sourceTypes [ this . currentSourceSelectedTypeIdx ! ] ) ) {
346- if ( this . currentSource . data [ field . fieldName ] === null || this . currentSource . data [ field . fieldName ] === undefined || this . currentSource . data [ field . fieldName ] . toString ( ) . trim ( ) . length === 0 ) {
347- Swal . fire ( {
348- icon : "error" ,
349- text : "Not all fields filled out!" ,
350- title : "Error" ,
351- ...globalSwalOptions ,
352- } ) ;
353- return ;
346+ if ( field . fieldName != 'info' ) {
347+ if ( this . currentSource . data [ field . fieldName ] === null || this . currentSource . data [ field . fieldName ] === undefined || this . currentSource . data [ field . fieldName ] . toString ( ) . trim ( ) . length === 0 ) {
348+ Swal . fire ( {
349+ icon : "error" ,
350+ text : "Not all fields filled out!" ,
351+ title : "Error" ,
352+ ...globalSwalOptions ,
353+ } ) ;
354+ return ;
355+ }
354356 }
355357 if ( field . fieldType == "port" ) {
356358 if ( this . portInUse ( this . currentSource . data [ field . fieldName ] , this . currentSource . id ) ) {
You can’t perform that action at this time.
0 commit comments