Load marked and return proper Template with CSP
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a8a655b1c0
commit
eccc391bda
2 changed files with 2 additions and 2 deletions
|
@ -139,6 +139,7 @@ class AppSettingsController extends Controller {
|
|||
$category = 'installed';
|
||||
}
|
||||
|
||||
\OC_Util::addVendorScript('core', 'marked/marked.min');
|
||||
$params = [];
|
||||
$params['category'] = $category;
|
||||
$params['appstoreEnabled'] = $this->config->getSystemValue('appstoreenabled', true) === true;
|
||||
|
@ -146,12 +147,11 @@ class AppSettingsController extends Controller {
|
|||
$params['updateCount'] = count($this->getAppsWithUpdates());
|
||||
$this->navigationManager->setActiveEntry('core_apps');
|
||||
|
||||
$templateResponse = new TemplateResponse($this->appName, 'apps', $params, 'user');
|
||||
$templateResponse = new TemplateResponse('settings', 'settings', ['serverData' => $params]);
|
||||
$policy = new ContentSecurityPolicy();
|
||||
$policy->addAllowedImageDomain('https://usercontent.apps.nextcloud.com');
|
||||
$templateResponse->setContentSecurityPolicy($policy);
|
||||
|
||||
return new TemplateResponse('settings', 'settings', ['serverData' => $params]);
|
||||
return $templateResponse;
|
||||
|
||||
}
|
||||
|
|
0
settings/src/components/appList/appScore.vue
Normal file
0
settings/src/components/appList/appScore.vue
Normal file
Loading…
Reference in a new issue