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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
pull/28546/head
Julius Härtl 5 years ago committed by nextcloud-command
parent 3f65c08c1e
commit 778aa37a65
  1. 2
      apps/files_versions/js/files_versions.js
  2. 2
      apps/files_versions/js/files_versions.js.map
  3. 4
      apps/files_versions/src/versionstabview.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -12,6 +12,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
*/

Loading…
Cancel
Save