Skip to content

Commit 2388e9a

Browse files
authored
Merge pull request #138 from JTF4/osc-sourcetype-patch
Osc sourcetype patch
2 parents b423197 + 577408d commit 2388e9a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

UI/src/app/_components/settings/settings.component.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)