id="cust-{{args.settingName}}-input"
[ngModel]="userSettings[args.settingName]"
(ngModelChange)="userSettingChange(args.settingName, $event)"
+ [required]="settingFieldRequired(args.settingName)"
[disabled]="args.disabled"
/>
</div>
name="cust-opac.default_sms_carrier-input"
domId="cust-opac.default_sms_carrier-input"
[selectedId]="userSettings['opac.default_sms_carrier']"
+ [required]="settingFieldRequired('opac.default_sms_carrier')"
(onChange)="userSettingChange(
'opac.default_sms_carrier', $event ? $event.id : null)">
</eg-combobox>
return this.fieldVisibility[field] === 3;
}
+ settingFieldRequired(name: string): boolean {
+
+ switch (name) {
+ case 'opac.default_sms_notify':
+ case 'opac.default_sms_carrier':
+ return this.holdNotifyTypes.sms;
+ }
+
+ return false;
+ }
fieldPattern(idlClass: string, field: string): RegExp {
if (!this.fieldPatterns[idlClass][field]) {