Bug 1357341 - Fix VariableView with new Reps bundle; r=jdescottes draft
authornchevobbe <nchevobbe@mozilla.com>
Thu, 20 Apr 2017 12:12:14 +0200
changeset 565775 c930c3f2fd8a7c71c8347872607389d4321e4171
parent 565774 b674cd7b3bb493abe1130485b4e3b388b11fdec6
child 625117 ab24858ddbbb502aa45d1e397f78308e81421806
push id55003
push userbmo:nchevobbe@mozilla.com
push dateThu, 20 Apr 2017 11:53:55 +0000
reviewersjdescottes
bugs1357341
milestone55.0a1
Bug 1357341 - Fix VariableView with new Reps bundle; r=jdescottes MozReview-Commit-ID: GSOyL6Nx23Z
devtools/client/webconsole/new-console-output/components/variables-view-link.js
--- a/devtools/client/webconsole/new-console-output/components/variables-view-link.js
+++ b/devtools/client/webconsole/new-console-output/components/variables-view-link.js
@@ -16,21 +16,24 @@ const {openVariablesView} = require("dev
 VariablesViewLink.displayName = "VariablesViewLink";
 
 VariablesViewLink.propTypes = {
   object: PropTypes.object.isRequired
 };
 
 function VariablesViewLink(props) {
   const { className, object, children } = props;
-
+  const classes = ["cm-variable"];
+  if (className) {
+    classes.push(className);
+  }
   return (
     dom.a({
       onClick: openVariablesView.bind(null, object),
       // Context menu can use this actor id information to enable additional menu items.
       "data-link-actor-id": object.actor,
-      className: className || "cm-variable",
+      className: classes.join(" "),
       draggable: false,
     }, children)
   );
 }
 
 module.exports = VariablesViewLink;