aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-09 18:03:32 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 11:50:48 +0100
commit1c4d43923a0904de0373b309b5b83ac6b15cfa2b (patch)
tree8e36a8b83e3670e1fa562579c26d1ea6d3f66f27 /apps
parentf06b8da24932ad1f7d844ae8be55bb4e61873ad1 (diff)
downloadnextcloud-server-1c4d43923a0904de0373b309b5b83ac6b15cfa2b.tar.gz
nextcloud-server-1c4d43923a0904de0373b309b5b83ac6b15cfa2b.zip
Use highlight rich objecttype to render links in CodeIntegrity setup check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/SetupChecks/CodeIntegrity.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/CodeIntegrity.php b/apps/settings/lib/SetupChecks/CodeIntegrity.php
index 234e1fbf058..f5882be888f 100644
--- a/apps/settings/lib/SetupChecks/CodeIntegrity.php
+++ b/apps/settings/lib/SetupChecks/CodeIntegrity.php
@@ -55,8 +55,23 @@ class CodeIntegrity implements ISetupCheck {
} else {
// FIXME: If setup check can link to settings pages this should link to /settings/integrity/failed and /settings/integrity/rescan?requesttoken=TOKEN
return SetupResult::error(
- $this->l10n->t('Some files have not passed the integrity check.'),
- $this->urlGenerator->linkToDocs('admin-code-integrity')
+ $this->l10n->t('Some files have not passed the integrity check. {link1} {link2}'),
+ $this->urlGenerator->linkToDocs('admin-code-integrity'),
+ [
+ 'link1' => [
+ 'type' => 'highlight',
+ 'id' => 'getFailedIntegrityCheckFiles',
+ 'name' => 'List of invalid files…',
+ 'link' => $this->urlGenerator->linkToRoute('settings.CheckSetup.getFailedIntegrityCheckFiles'),
+ ],
+ 'link2' => [
+ 'type' => 'highlight',
+ 'id' => 'rescanFailedIntegrityCheck',
+ 'name' => 'Rescan…',
+ //, ['requesttoken' => '']?
+ 'link' => $this->urlGenerator->linkToRoute('settings.CheckSetup.rescanFailedIntegrityCheck'),
+ ],
+ ],
);
}
}