Added additional sentence to custom args hint and fixed issue where empty args could be added through the args modifier

This commit is contained in:
Tzahi12345
2020-05-06 02:38:39 -04:00
parent cc47823b0c
commit d4ad1f9fce
4 changed files with 8 additions and 3 deletions

View File

@@ -161,6 +161,11 @@ export class ArgModifierDialogComponent implements OnInit, AfterViewInit {
add(event) {
const input = event.input;
const arg = event.value;
if (!arg || arg.trim().length === 0) {
return;
}
this.args_array.push(arg);
if (this.modified_args.length > 0) {
this.modified_args += ',,'