Do not load versions tab view if the files app is not available

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-08-20 14:45:46 +02:00 committed by backportbot[bot]
parent cd9ee1653b
commit 1d7e8ca0c3
3 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -30,6 +30,10 @@ import ItemTemplate from './templates/item.handlebars'
import Template from './templates/template.handlebars';
(function() {
if (!OCA.Files.DetailTabView) {
// Only register the versions tab within the files app
return
}
/**
* @memberof OCA.Versions
*/