Mark "low importance" and "owned" changes in the filetree
Summary: Ref T13516. Mark low-importance changes (generated code, deleted files) and owned-with-authority changes in the filetree.
Test Plan: {F7375327}
Maniphest Tasks: T13516
Differential Revision: https://secure.phabricator.com/D21157
This commit is contained in:
@@ -23,6 +23,8 @@ JX.install('DiffPathView', {
|
||||
_inlineNode: null,
|
||||
_isDirectory: false,
|
||||
_displayPath: null,
|
||||
_isOwned: false,
|
||||
_isLowImportance: false,
|
||||
|
||||
getNode: function() {
|
||||
if (!this._node) {
|
||||
@@ -119,6 +121,27 @@ JX.install('DiffPathView', {
|
||||
return this;
|
||||
},
|
||||
|
||||
setIsLowImportance: function(low_importance) {
|
||||
this._isLowImportance = low_importance;
|
||||
|
||||
var node = this.getNode();
|
||||
JX.DOM.alterClass(
|
||||
node,
|
||||
'diff-tree-path-low-importance',
|
||||
this._isLowImportance);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setIsOwned: function(owned) {
|
||||
this._isOwned = owned;
|
||||
|
||||
var node = this.getNode();
|
||||
JX.DOM.alterClass(node, 'diff-tree-path-owned', this._isOwned);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
_onclick: function(e) {
|
||||
if (!e.isNormalClick()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user