MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / submitLinuxDOOAuth

Function submitLinuxDOOAuth

web/src/components/settings/SystemSetting.js:441–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439 };
440
441 const submitLinuxDOOAuth = async () => {
442 const options = [];
443
444 if (originInputs['LinuxDOClientId'] !== inputs.LinuxDOClientId) {
445 options.push({ key: 'LinuxDOClientId', value: inputs.LinuxDOClientId });
446 }
447 if (
448 originInputs['LinuxDOClientSecret'] !== inputs.LinuxDOClientSecret &&
449 inputs.LinuxDOClientSecret !== ''
450 ) {
451 options.push({
452 key: 'LinuxDOClientSecret',
453 value: inputs.LinuxDOClientSecret,
454 });
455 }
456
457 if (options.length > 0) {
458 await updateOptions(options);
459 }
460 };
461
462 const handleCheckboxChange = async (optionKey, event) => {
463 const value = event.target.checked;

Callers

nothing calls this directly

Calls 1

updateOptionsFunction · 0.85

Tested by

no test coverage detected