Merge "Add Edit change action"

This commit is contained in:
Kasper Nilsson
2018-01-23 23:07:05 +00:00
committed by Gerrit Code Review
6 changed files with 233 additions and 137 deletions

View File

@@ -208,6 +208,13 @@ limitations under the License.
return allPatchSets[0].num === Gerrit.PatchSetBehavior.EDIT_NAME;
},
/** @return {Boolean} */
hasEditPatchsetLoaded(patchRange) {
if (!patchRange) { return false; }
return patchRange.patchNum === Gerrit.PatchSetBehavior.EDIT_NAME ||
patchRange.basePatchNum === Gerrit.PatchSetBehavior.EDIT_NAME;
},
/**
* Check whether there is no newer patch than the latest patch that was
* available when this change was loaded.