Skip to content

Commit

Permalink
Merge pull request #526 from nextcloud/opt-out-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
kesselb committed Nov 15, 2023
2 parents 2f257ee + 19dfe0b commit 1c2d513
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Expand Up @@ -324,8 +324,8 @@ function updateMonitoringUrl(event) {
if ($param.name === 'format_json' && $param.checked) {
url.searchParams.set('format', 'json')
}
if ($param.name === 'skip_apps' && $param.checked) {
url.searchParams.set('skipApps', 'true')
if ($param.name === 'skip_apps' && !$param.checked) {
url.searchParams.set('skipApps', 'false')
}
if ($param.name === 'skip_update' && !$param.checked) {
url.searchParams.set('skipUpdate', 'false')
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Expand Up @@ -113,7 +113,7 @@ private function checkAuthorized(): bool {
* @PublicPage
* @BruteForceProtection(action=serverinfo)
*/
public function info(bool $skipApps = false, bool $skipUpdate = true): DataResponse {
public function info(bool $skipApps = true, bool $skipUpdate = true): DataResponse {
if (!$this->checkAuthorized()) {
$response = new DataResponse(['message' => 'Unauthorized']);
$response->throttle();
Expand Down
2 changes: 1 addition & 1 deletion templates/settings-admin.php
Expand Up @@ -425,7 +425,7 @@ function FormatMegabytes(int $byte): string {
<label for="format_json"><?php p($l->t('Output in JSON')) ?></label>
</div>
<div class="monitoring-url-param">
<input type="checkbox" class="update-monitoring-endpoint-url" name="skip_apps" id="skip_apps">
<input type="checkbox" class="update-monitoring-endpoint-url" name="skip_apps" id="skip_apps" checked>
<label for="skip_apps"><?php p($l->t('Skip app updates (including app updates will send an external request to the app store)')) ?></label>
</div>
<div class="monitoring-url-param">
Expand Down

0 comments on commit 1c2d513

Please sign in to comment.