Make gr-edit-controls respect current patchNum

Without the current patchNum, the edit controls query for files from
a patch set (`edit`) that may not exist.

Bug: Issue 4437
Change-Id: Ifd20f96741e43e47c040e300d9ab82b21a9ae4ba
This commit is contained in:
Kasper Nilsson
2018-01-23 17:56:03 -08:00
parent eb389b9185
commit 0063319356
3 changed files with 12 additions and 3 deletions

View File

@@ -197,7 +197,10 @@ limitations under the License.
</div>
<div class$="rightControls [[_computeExpandedClass(filesExpanded)]]">
<span class="showOnEdit flexContainer">
<gr-edit-controls id="editControls" change="[[change]]"></gr-edit-controls>
<gr-edit-controls
id="editControls"
patch-num="[[patchNum]]"
change="[[change]]"></gr-edit-controls>
<span class="separator"></span>
</span>
<span class="downloadContainer desktop">