diff --git a/lib/routes/termsAndConditionsRoutes.js b/lib/routes/termsAndConditionsRoutes.js index 7d6bb9fa..77ba6b47 100644 --- a/lib/routes/termsAndConditionsRoutes.js +++ b/lib/routes/termsAndConditionsRoutes.js @@ -7,6 +7,7 @@ const configManager = require('../new-config-manager') const plugins = require('../plugins') const createTerms = terms => (terms.active && terms.text) ? ({ + delay: terms.delay, active: terms.active, title: terms.title, text: nmd(terms.text), diff --git a/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js b/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js index f5e9e2f6..1aa58da8 100644 --- a/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js +++ b/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js @@ -103,6 +103,7 @@ const TermsConditions = () => { data?.config && fromNamespace(namespaces.TERMS_CONDITIONS, data.config) const formData = termsAndConditions ?? {} const showOnScreen = termsAndConditions?.active ?? false + const addDelayOnScreen = termsAndConditions?.delay ?? false const save = it => saveConfig({ @@ -182,6 +183,20 @@ const TermsConditions = () => { {showOnScreen ? 'Yes' : 'No'} +
+

Add 7 seconds delay on screen

+
+ + save({ + delay: event.target.checked + }) + } + /> + {addDelayOnScreen ? 'Yes' : 'No'} +
+
Info card {!editing && (