Add "X / Y Comments" button to Differential persistent header

Summary: Ref M1476.

Test Plan: {F4987991}

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D18072
This commit is contained in:
epriestley
2017-06-03 06:42:52 -07:00
parent 863b7ab766
commit 9773dc0e6c
3 changed files with 91 additions and 31 deletions

View File

@@ -440,6 +440,8 @@ JX.install('DiffChangeset', {
last_inline = inline;
}
var is_saved = (!inline.isDraft() && !inline.isEditing());
last_inline_item = {
type: block.type,
changeset: this,
@@ -452,7 +454,9 @@ JX.install('DiffChangeset', {
},
attributes: {
unsaved: inline.isEditing(),
unsubmitted: inline.isDraft()
unsubmitted: inline.isDraft(),
undone: (is_saved && !inline.isDone()),
done: (is_saved && inline.isDone())
}
};