SideBySide2: Implement "No Differences"

If the content of a file is unchanged, display a red "No Differences"
prompt in the middle of the header.

Change-Id: I9397fbfb42370a6a87b32d8098dbf4f1212548f2
This commit is contained in:
Michael Zhou
2013-10-18 22:08:53 -04:00
parent 30d0981942
commit 9d1dd581ee
3 changed files with 20 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ class Header extends Composite {
@UiField CheckBox reviewed;
@UiField Element filePath;
@UiField Element noDiff;
@UiField InlineHyperlink prev;
@UiField InlineHyperlink up;
@UiField InlineHyperlink next;
@@ -208,4 +210,8 @@ class Header extends Composite {
String getNextPath() {
return nextPath;
}
void removeNoDiff() {
noDiff.removeFromParent();
}
}