mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1306775 - New console frontend: Fix classes on page errors and console commands. r=me
MozReview-Commit-ID: 97gjsvbKt1d
This commit is contained in:
parent
7ea7afa4f6
commit
b1b922dcdb
@ -35,6 +35,7 @@ function ConsoleCommand(props) {
|
||||
source,
|
||||
type,
|
||||
level,
|
||||
topLevelClasses: [],
|
||||
messageBody,
|
||||
scrollToMessage: props.autoscroll,
|
||||
};
|
||||
|
@ -33,7 +33,8 @@ function PageError(props) {
|
||||
} = props;
|
||||
const {
|
||||
id: messageId,
|
||||
source, type,
|
||||
source,
|
||||
type,
|
||||
level,
|
||||
messageText: messageBody,
|
||||
repeat,
|
||||
@ -47,6 +48,7 @@ function PageError(props) {
|
||||
source,
|
||||
type,
|
||||
level,
|
||||
topLevelClasses: [],
|
||||
messageBody,
|
||||
repeat,
|
||||
frame,
|
||||
|
@ -28,7 +28,7 @@ const Message = createClass({
|
||||
source: PropTypes.string.isRequired,
|
||||
type: PropTypes.string.isRequired,
|
||||
level: PropTypes.string.isRequired,
|
||||
topLevelClasses: PropTypes.array,
|
||||
topLevelClasses: PropTypes.array.isRequired,
|
||||
messageBody: PropTypes.any.isRequired,
|
||||
repeat: PropTypes.any,
|
||||
frame: PropTypes.any,
|
||||
@ -40,12 +40,6 @@ const Message = createClass({
|
||||
sourceMapService: PropTypes.any,
|
||||
},
|
||||
|
||||
getDefaultProps() {
|
||||
return {
|
||||
topLevelClasses: [],
|
||||
};
|
||||
},
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.scrollToMessage && this.messageNode) {
|
||||
this.messageNode.scrollIntoView();
|
||||
|
Loading…
Reference in New Issue
Block a user