Slightly promote new functionality and consider mono_eem modes on sampler/urukul for suservo

Signed-off-by: Egor Savkin <es@m-labs.hk>
Egor Savkin 2023-09-25 16:46:54 +08:00
parent cde98a7aa4
commit cb616e4917
3 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -725,7 +725,6 @@ class ProductCartItem extends React.PureComponent {
construct: ((outvar, value) => {
// console.log("construct", outvar, value, options_data);
options_data[outvar] = value;
onCardUpdate();
}),
update: ((outvar, value) => {
// console.log("update", outvar, value, options_data);
@ -2471,7 +2470,7 @@ class Shop extends React.PureComponent {
isMobile={isMobile}
title="Order hardware"
description="
Drag and drop the cards you want into the crate below to see how the combination would look like. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote."
Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote."
crateMode={
<CrateMode
items={crateModeItems}

View File

@ -444,8 +444,8 @@ export function OptionsSummaryPopup({id, options, data}) {
export function FillExtData(data, index) {
return {
has_other_dio: data.filter((value, item_index) => index !== item_index && value.name.endsWith("-TTL")).length > 0,
has_dds: data.filter(((value, _) => value.name === "DDS")).length > 0,
has_sampler: data.filter(((value, _) => value.name === "Sampler")).length > 0
has_dds: data.filter(((value, _) => value.name === "DDS" && (!value.options_data || !value.options_data.mono_eem))).length > 0,
has_sampler: data.filter(((value, _) => value.name === "Sampler" && (!value.options_data || !value.options_data.mono_eem))).length > 0
}
}