Change option verbiage
This commit is contained in:
commit
ef12824860
|
@ -71,7 +71,7 @@ By default, Octotree only works on `github.com`. To support enterprise version (
|
|||
* __Remember sidebar visibility__: if checked, show or hide Octotree based on its last visibility.
|
||||
* __Show in non-code pages__: if checked, allow Octotree to show in non-code pages such as Issues and Pull Requests.
|
||||
* __Load entire tree at once__: if checked, load and render the entire code tree at once. To avoid long loading, this should be unchecked if you frequently work with very large repos.
|
||||
* __Show pull request changes__ _(new!)_: if checked and in "Pull requests" page, only show the change set of the pull request.
|
||||
* __Show only pull request changes__ _(new!)_: if checked and in "Pull requests" page, only show the change set of the pull request.
|
||||
|
||||
## Credits
|
||||
* [@crashbell](https://github.com/crashbell) for helping with GitLab and others
|
||||
|
|
|
@ -181,7 +181,7 @@ class GitHub extends PjaxAdapter {
|
|||
_getPatch(opts, cb) {
|
||||
const {pullNumber} = opts.repo
|
||||
|
||||
this._get(`/pulls/${pullNumber}/files`, opts, (err, res) => {
|
||||
this._get(`/pulls/${pullNumber}/files?per_page=300`, opts, (err, res) => {
|
||||
if (err) cb(err)
|
||||
else {
|
||||
const diffMap = {}
|
||||
|
|
|
@ -169,6 +169,13 @@
|
|||
height: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.octotree_opts_disclaimer {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin-left: 17px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,11 @@
|
|||
</div>
|
||||
|
||||
<div class="octotree_github_only">
|
||||
<label><input type="checkbox" data-store="PR"> Show pull request changes</label>
|
||||
<label>
|
||||
<input type="checkbox" data-store="PR">
|
||||
Show only pull request changes
|
||||
<span class="octotree_opts_disclaimer">Note: maximum of 300 files</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue