зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1330858 - Hide Object string for cookies object;r=Honza
MozReview-Commit-ID: G2G0xY2S2Ij --HG-- extra : rebase_source : 100169a07499f2399dfc7ab2ff556cdf52aa4013
This commit is contained in:
Родитель
f981af11d2
Коммит
8c5caa6670
|
@ -100,15 +100,21 @@ const PropertiesView = createClass({
|
|||
},
|
||||
|
||||
renderValueWithRep(props) {
|
||||
// Hide rep summary for sections
|
||||
if (props.member.level === 0) {
|
||||
const { member } = props;
|
||||
|
||||
// Hide strings with following conditions
|
||||
// 1. this row is a togglable section
|
||||
// 2. the `value` object has a `value` property, only happend in Cookies panel
|
||||
// Put 2 here to not dup this method
|
||||
if (member.level === 0 ||
|
||||
(typeof member.value === "object" && member.value.value)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return Rep(Object.assign(props, {
|
||||
// FIXME: A workaround for the issue in StringRep
|
||||
// Force StringRep to crop the text everytime
|
||||
member: Object.assign({}, props.member, { open: false }),
|
||||
member: Object.assign({}, member, { open: false }),
|
||||
mode: MODE.TINY,
|
||||
cropLimit: 60,
|
||||
}));
|
||||
|
@ -149,11 +155,11 @@ const PropertiesView = createClass({
|
|||
|
||||
render() {
|
||||
const {
|
||||
object,
|
||||
decorator,
|
||||
enableInput,
|
||||
expandableStrings,
|
||||
filterPlaceHolder,
|
||||
object,
|
||||
renderRow,
|
||||
renderValue,
|
||||
sectionNames,
|
||||
|
@ -191,8 +197,6 @@ const PropertiesView = createClass({
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
module.exports = PropertiesView;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ define(function (require, exports, module) {
|
|||
* getHeaderClass: function(colId);
|
||||
* renderValue: function(object, colId);
|
||||
* renderRow: function(object);
|
||||
* renderCelL: function(object, colId);
|
||||
* renderCell: function(object, colId);
|
||||
* renderLabelCell: function(object);
|
||||
* }
|
||||
*/
|
||||
|
@ -78,7 +78,7 @@ define(function (require, exports, module) {
|
|||
getHeaderClass: PropTypes.func,
|
||||
renderValue: PropTypes.func,
|
||||
renderRow: PropTypes.func,
|
||||
renderCelL: PropTypes.func,
|
||||
renderCell: PropTypes.func,
|
||||
renderLabelCell: PropTypes.func,
|
||||
}),
|
||||
// Custom tree row (node) renderer
|
||||
|
|
Загрузка…
Ссылка в новой задаче