Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
Add "readOnly"-endpoint parameter to repo-config endpoint
Change-Id: I535b5a9b74a4244b5c70fb35e58469aaf8fa0fb7
diff --git a/Documentation/pg-plugin-endpoints.txt b/Documentation/pg-plugin-endpoints.txt
index 10db5ba..fe5dc06 100644
--- a/Documentation/pg-plugin-endpoints.txt
+++ b/Documentation/pg-plugin-endpoints.txt
@@ -114,6 +114,10 @@
+
String name of the repository currently being configured.
+* `readOnly`
++
+Boolean whether the repository configuration is read only by the logged in user.
+
=== settings-menu-item
This endpoint is situated at the end of the navigation menu in the settings
screen.
diff --git a/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.html b/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.html
index 17b9b0d..3d8a2d2 100644
--- a/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.html
+++ b/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.html
@@ -368,6 +368,7 @@
</fieldset>
<gr-endpoint-decorator name="repo-config">
<gr-endpoint-param name="repoName" value="[[repo]]"></gr-endpoint-param>
+ <gr-endpoint-param name="readOnly" value="[[_readOnly]]"></gr-endpoint-param>
</gr-endpoint-decorator>
</div>
</div>