()
| 214 | }; |
| 215 | |
| 216 | const submitSMTP = async () => { |
| 217 | const options = []; |
| 218 | |
| 219 | if (originInputs['SMTPServer'] !== inputs.SMTPServer) { |
| 220 | options.push({ key: 'SMTPServer', value: inputs.SMTPServer }); |
| 221 | } |
| 222 | if (originInputs['SMTPAccount'] !== inputs.SMTPAccount) { |
| 223 | options.push({ key: 'SMTPAccount', value: inputs.SMTPAccount }); |
| 224 | } |
| 225 | if (originInputs['SMTPFrom'] !== inputs.SMTPFrom) { |
| 226 | options.push({ key: 'SMTPFrom', value: inputs.SMTPFrom }); |
| 227 | } |
| 228 | if ( |
| 229 | originInputs['SMTPPort'] !== inputs.SMTPPort && |
| 230 | inputs.SMTPPort !== '' |
| 231 | ) { |
| 232 | options.push({ key: 'SMTPPort', value: inputs.SMTPPort }); |
| 233 | } |
| 234 | if ( |
| 235 | originInputs['SMTPToken'] !== inputs.SMTPToken && |
| 236 | inputs.SMTPToken !== '' |
| 237 | ) { |
| 238 | options.push({ key: 'SMTPToken', value: inputs.SMTPToken }); |
| 239 | } |
| 240 | |
| 241 | if (options.length > 0) { |
| 242 | await updateOptions(options); |
| 243 | } |
| 244 | }; |
| 245 | |
| 246 | const submitEmailDomainWhitelist = async () => { |
| 247 | if (Array.isArray(emailDomainWhitelist)) { |
nothing calls this directly
no test coverage detected