Merge branch 'stable-2.16' into stable-3.0

* stable-2.16:
  Add "readOnly"-endpoint parameter to repo-config endpoint

Change-Id: I73c1912b1a927252372b8b30b18b58c145c0be9a
This commit is contained in:
David Pursehouse
2019-10-30 21:43:21 +09:00
2 changed files with 5 additions and 0 deletions

View File

@@ -114,6 +114,10 @@ In addition to default parameters, the following are available:
+ +
String name of the repository currently being configured. 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 === settings-menu-item
This endpoint is situated at the end of the navigation menu in the settings This endpoint is situated at the end of the navigation menu in the settings
screen. screen.

View File

@@ -361,6 +361,7 @@ limitations under the License.
</fieldset> </fieldset>
<gr-endpoint-decorator name="repo-config"> <gr-endpoint-decorator name="repo-config">
<gr-endpoint-param name="repoName" value="[[repo]]"></gr-endpoint-param> <gr-endpoint-param name="repoName" value="[[repo]]"></gr-endpoint-param>
<gr-endpoint-param name="readOnly" value="[[_readOnly]]"></gr-endpoint-param>
</gr-endpoint-decorator> </gr-endpoint-decorator>
</div> </div>
</div> </div>