diff --git a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html index 42c61477ef..46b803f58f 100644 --- a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html +++ b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.html @@ -266,7 +266,7 @@ limitations under the License. - Patch [[patchNum]] is not latest. + [[_computePatchSetWarning(patchNum, _labelsChanged)]] Reload @@ -279,7 +279,7 @@ limitations under the License. { const fn = element._computeSendButtonDisabled.bind(element); - assert.isTrue(fn('not-latest')); - assert.isFalse(fn('latest', 'Start review')); - assert.isTrue(fn('latest', 'Send', {}, '', false, false, false)); + assert.isFalse(fn('Start review')); + assert.isTrue(fn('Send', {}, '', false, false, false)); // Mock nonempty comment draft array, with seding comments. - assert.isFalse(fn('latest', 'Send', {file: ['draft']}, '', false, false, + assert.isFalse(fn('Send', {file: ['draft']}, '', false, false, true)); // Mock nonempty comment draft array, without seding comments. - assert.isTrue(fn('latest', 'Send', {file: ['draft']}, '', false, false, + assert.isTrue(fn('Send', {file: ['draft']}, '', false, false, false)); // Mock nonempty change message. - assert.isFalse(fn('latest', 'Send', {}, 'test', false, false, false)); + assert.isFalse(fn('Send', {}, 'test', false, false, false)); // Mock reviewers mutated. - assert.isFalse(fn('latest', 'Send', {}, '', true, false, false)); + assert.isFalse(fn('Send', {}, '', true, false, false)); // Mock labels changed. - assert.isFalse(fn('latest', 'Send', {}, '', false, true, false)); + assert.isFalse(fn('Send', {}, '', false, true, false)); }); });