Skip to content

Commit 5754c0a

Browse files
authored
Merge pull request #5697 from nextcloud/fix/creator-preview
fix: Set preview flag for file templates that have a URL
2 parents 1edc087 + 1349ba7 commit 5754c0a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Template/CollaboraTemplateProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function getCustomTemplates(string $mimetype): array {
4949
return array_map(function (File $file) {
5050
$template = new Template(CollaboraTemplateProvider::class, (string)$file->getId(), $file);
5151
$template->setCustomPreviewUrl($this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $file->getId(), 'a' => true]));
52+
$template->setHasPreview(true);
5253
return $template;
5354
}, $collaboraTemplates);
5455
}

0 commit comments

Comments
 (0)