зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285053 - New console frontend: use variables view link for object inspection. r=bgrins
--HG-- extra : rebase_source : 83611d0790c1052404d1c321e2b91103a8f98ba6
This commit is contained in:
Родитель
3652f29f7b
Коммит
abca42c746
|
@ -8,10 +8,12 @@
|
|||
|
||||
// React
|
||||
const {
|
||||
createFactory,
|
||||
PropTypes
|
||||
} = require("devtools/client/shared/vendor/react");
|
||||
const { createFactories } = require("devtools/client/shared/components/reps/rep-utils");
|
||||
const { Rep } = createFactories(require("devtools/client/shared/components/reps/rep"));
|
||||
const VariablesViewLink = createFactory(require("devtools/client/webconsole/new-console-output/components/variables-view-link").VariablesViewLink);
|
||||
const { Grip } = require("devtools/client/shared/components/reps/grip");
|
||||
|
||||
GripMessageBody.displayName = "GripMessageBody";
|
||||
|
@ -23,6 +25,7 @@ GripMessageBody.propTypes = {
|
|||
function GripMessageBody(props) {
|
||||
return Rep({
|
||||
object: props.grip,
|
||||
objectLink: VariablesViewLink,
|
||||
defaultRep: Grip
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче