Correct UI label to match API
Change-Id: I5294e8fd1e8c8c56aa2eda898e904716ca0ccb8a
diff --git a/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config.html b/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config.html
index 23cc805..d41d9a1 100644
--- a/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config.html
+++ b/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config.html
@@ -30,9 +30,9 @@
<fieldset id="unresolved_comments">
<section>
- <span class="title">Allow submission with unresolved comments</span>
+ <span class="title">Block submission if change has unresolved comments</span>
<span class="value">
- <gr-select id="allowUnresolvedComments"
+ <gr-select id="blockOnUnresolvedComments"
bind-value="{{_repoConfig.comments.block_if_unresolved_comments}}">
<select disabled$="[[_readOnly]]">
<option value="true">Yes</option>
diff --git a/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config_test.html b/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config_test.html
index f71b6f7..3f96aac 100644
--- a/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config_test.html
+++ b/gr-simple-submit-rules-repo-config/gr-simple-submit-rules-repo-config_test.html
@@ -155,7 +155,7 @@
test('unresolved comment sets the repoConfig value (true)', done => {
unresolvedCommentsEl.value = 'true';
- element.$$('#allowUnresolvedComments').dispatchEvent(new Event('change'));
+ element.$$('#blockOnUnresolvedComments').dispatchEvent(new Event('change'));
flush(function () {
assert.equal(element._repoConfig.comments.block_if_unresolved_comments, 'true');
@@ -165,7 +165,7 @@
test('unresolved comment sets the repoConfig value (false)', done => {
unresolvedCommentsEl.value = 'false';
- element.$$('#allowUnresolvedComments').dispatchEvent(new Event('change'));
+ element.$$('#blockOnUnresolvedComments').dispatchEvent(new Event('change'));
flush(function () {
assert.equal(element._repoConfig.comments.block_if_unresolved_comments, 'false');