diff --git a/static/js/shop.jsx b/static/js/shop.jsx index 0bed239..6d64af8 100644 --- a/static/js/shop.jsx +++ b/static/js/shop.jsx @@ -1654,6 +1654,13 @@ class Shop extends React.PureComponent { }); + if (itemsCloned.find(elem => elem.type === 'urukul')) { + if (this.state.items['urukul'].rules.info) { + rules[this.state.items['urukul'].rules.info.type] = {...this.state.items['urukul'].rules.info}; + } + } + + // check if IDC-BNC is correctly positionned (after Zotino or HD68) const idxIDCBNC = itemsCloned.reduce((prev, next, i) => { if (next.type === 'idc-bnc') { diff --git a/static/js/shop.min.js b/static/js/shop.min.js index 813a1d3..40e7c78 100644 --- a/static/js/shop.min.js +++ b/static/js/shop.min.js @@ -1701,7 +1701,16 @@ function (_React$PureComponent12) { } return _type; - }); // check if IDC-BNC is correctly positionned (after Zotino or HD68) + }); + + if (itemsCloned.find(function (elem) { + return elem.type === 'urukul'; + })) { + if (this.state.items['urukul'].rules.info) { + rules[this.state.items['urukul'].rules.info.type] = _objectSpread({}, this.state.items['urukul'].rules.info); + } + } // check if IDC-BNC is correctly positionned (after Zotino or HD68) + var idxIDCBNC = itemsCloned.reduce(function (prev, next, i) { if (next.type === 'idc-bnc') { diff --git a/static/js/shop_data.js b/static/js/shop_data.js index 3114376..3f01e40 100644 --- a/static/js/shop_data.js +++ b/static/js/shop_data.js @@ -259,6 +259,12 @@ const shop_data = { name: 'Urukul', message: 'This configuration uses 2 EEM connectors as it is recommended. If you prefer to use 1 EEM connector, please inform us by leaving an additional note.', }, + info: { + type: 'urukul-info', + icon: '/shop/icon-reminder.svg', + name: 'Urukul', + message: 'The default chip is AD9910, which supports more features. If you need the higher frequency resolution of the AD9912, leave us a note.', + }, resources: { type: 'urukul', icon: '/shop/icon-warning.svg',