Author: bricks
Date: 2017-02-16 10:35:03 +0100 (Thu, 16 Feb 2017)
New Revision: 27674

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/classic/ng/src/web/form/yesnoradio.js
Log:
* src/html/classic/ng/src/web/form/yesnoradio.js: Use own number proptype
validation for YesNoRadio value proptery. Now "1", "0", 1 and 0 are allowed
values.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2017-02-16 08:11:02 UTC (rev 27673)
+++ trunk/gsa/ChangeLog 2017-02-16 09:35:03 UTC (rev 27674)
@@ -1,3 +1,9 @@
+2017-02-16 Bj�rn Ricks <bjoern.ri...@greenbone.net>
+
+       * src/html/classic/ng/src/web/form/yesnoradio.js: Use own number 
proptype
+       validation for YesNoRadio value proptery. Now "1", "0", 1 and 0 are 
allowed
+       values.
+
 2017-02-15 Bj�rn Ricks <bjoern.ri...@greenbone.net>
 
        * src/html/classic/ng/src/web/icons/trashicon.js: Allow TashIcon to be

Modified: trunk/gsa/src/html/classic/ng/src/web/form/yesnoradio.js
===================================================================
--- trunk/gsa/src/html/classic/ng/src/web/form/yesnoradio.js    2017-02-16 
08:11:02 UTC (rev 27673)
+++ trunk/gsa/src/html/classic/ng/src/web/form/yesnoradio.js    2017-02-16 
09:35:03 UTC (rev 27674)
@@ -27,6 +27,7 @@
 import _ from '../../locale.js';
 
 import Layout from '../layout.js';
+import PropTypes from '../proptypes.js';
 
 import Radio from './radio.js';
 
@@ -55,10 +56,10 @@
 };
 
 YesNoRadio.propTypes = {
+  disabled: React.PropTypes.bool,
   name: React.PropTypes.string,
+  value: PropTypes.number,
   onChange: React.PropTypes.func,
-  disabled: React.PropTypes.bool,
-  value: React.PropTypes.number,
 };
 
 export default YesNoRadio;

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to