X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=skyquake%2Fplugins%2Flogging%2Fsrc%2FcategorySeverityGrid.jsx;h=12cb99cdfe224229199d04ec31c5e588c9fcf2bf;hb=refs%2Fchanges%2F76%2F776%2F1;hp=86a42c1660c5585120a541a6d08ac40418719158;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git
diff --git a/skyquake/plugins/logging/src/categorySeverityGrid.jsx b/skyquake/plugins/logging/src/categorySeverityGrid.jsx
index 86a42c166..12cb99cdf 100644
--- a/skyquake/plugins/logging/src/categorySeverityGrid.jsx
+++ b/skyquake/plugins/logging/src/categorySeverityGrid.jsx
@@ -27,17 +27,29 @@ export default class CategorySeverityGrid extends React.Component {
generateRows(defaultSeverities, severityOptions) {
let self = this;
return defaultSeverities.map(function(catsev) {
+ // let dropList = ();
let dropList = ();
- return [catsev.category, dropList];
+ onChange={self.onChangeSyslogSeverity(catsev.name)} />);
+ return [catsev.name, dropList];
});
}
- onChangeSeverity (category) {
+ // onChangeSeverity (category) {
+ // return function(e) {
+ // LoggingStore.updateCategoryDefaultSeverity({
+ // category: category,
+ // severity: e
+ // });
+ // }
+ // }
+
+ onChangeSyslogSeverity (name) {
return function(e) {
- LoggingStore.updateCategoryDefaultSeverity({
- category: category,
+ LoggingStore.updateCategoryDefaultSyslogSeverity({
+ name: name,
severity: e
});
}
@@ -60,7 +72,7 @@ export default class CategorySeverityGrid extends React.Component {
CategorySeverityGrid.defaultProps = {
cellLabels: [
- 'Category', 'Severity'
+ 'Name', 'Severity'
],
columnClasses: [
'category', 'severity'