hof 20.2.2 → 20.2.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -265,6 +265,7 @@ module.exports = function (options) {
|
|
265
265
|
let toggle;
|
266
266
|
let child;
|
267
267
|
let optionHint;
|
268
|
+
let useHintText;
|
268
269
|
|
269
270
|
if (typeof obj === 'string') {
|
270
271
|
value = obj;
|
@@ -275,6 +276,7 @@ module.exports = function (options) {
|
|
275
276
|
label = obj.label || 'fields.' + key + '.options.' + obj.value + '.label';
|
276
277
|
toggle = obj.toggle;
|
277
278
|
child = obj.child;
|
279
|
+
useHintText = obj.useHintText;
|
278
280
|
optionHint = obj.hint || 'fields.' + key + '.options.' + obj.value + '.hint';
|
279
281
|
}
|
280
282
|
|
@@ -293,7 +295,7 @@ module.exports = function (options) {
|
|
293
295
|
radioOption: opts.type === 'radio',
|
294
296
|
toggle: toggle,
|
295
297
|
child: child,
|
296
|
-
optionHint: conditionalTranslate(optionHint) || ''
|
298
|
+
optionHint: useHintText ? optionHint : conditionalTranslate(optionHint) || ''
|
297
299
|
};
|
298
300
|
}, this),
|
299
301
|
className: classNames(field),
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "hof",
|
3
3
|
"description": "A bootstrap for HOF projects",
|
4
|
-
"version": "20.2.
|
4
|
+
"version": "20.2.4",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "index.js",
|
7
7
|
"author": "HomeOffice",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"connect-redis": "^5.2.0",
|
46
46
|
"cookie-parser": "^1.4.6",
|
47
47
|
"cp": "^0.2.0",
|
48
|
-
"csrf": "^3.0
|
48
|
+
"csrf": "^3.1.0",
|
49
49
|
"debug": "^4.3.1",
|
50
50
|
"deprecate": "^1.0.0",
|
51
51
|
"dotenv": "^4.0.0",
|
@@ -74,9 +74,9 @@
|
|
74
74
|
"mixwith": "^0.1.1",
|
75
75
|
"moment": "^2.29.4",
|
76
76
|
"morgan": "^1.10.0",
|
77
|
-
"mustache": "^2.
|
77
|
+
"mustache": "^4.2.0",
|
78
78
|
"nodemailer": "^6.6.3",
|
79
|
-
"nodemailer-ses-transport": "^1.5.
|
79
|
+
"nodemailer-ses-transport": "^1.5.1",
|
80
80
|
"nodemailer-smtp-transport": "^2.7.4",
|
81
81
|
"nodemailer-stub-transport": "^1.1.0",
|
82
82
|
"notifications-node-client": "^6.0.0",
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"sass": "^1.56.2",
|
88
88
|
"serve-static": "^1.14.1",
|
89
89
|
"uglify-js": "^3.14.3",
|
90
|
-
"underscore": "^1.
|
90
|
+
"underscore": "^1.13.6",
|
91
91
|
"urijs": "^1.19.11",
|
92
92
|
"uuid": "^8.3.2",
|
93
93
|
"winston": "^3.7.2"
|