Merge branch 'stable-3.0' into stable-3.1

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

Change-Id: I535b5a9b74a4244b5c70fb35e58469aaf8fa0fb7
This commit is contained in:
David Pursehouse
2019-10-30 21:44:40 +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

@@ -368,6 +368,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>