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:
epriestley
2020-04-22 10:56:09 -07:00
parent ff88eb588e
commit a72a66caa8
10 changed files with 138 additions and 32 deletions

View File

@@ -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;