Skip to content

Commit

Permalink
fixup! fix(files): do not include scripts for merge-index
Browse files Browse the repository at this point in the history
  • Loading branch information
max-nextcloud committed Aug 27, 2023
1 parent ae66c40 commit e17a725
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@

(function() {

if (!OCA.Files) {
/**
* Namespace for the files app
* @namespace OCA.Files
*/
OCA.Files = {};
}

/**
* Construct a new FileActions instance
* @constructs FileActions
Expand Down
1 change: 1 addition & 0 deletions apps/files/lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal

// Load the files we need
\OCP\Util::addStyle('files', 'merged');
\OCP\Util::addScript('files', 'fileactions');
\OCP\Util::addScript('files', 'main');

$userId = $this->userSession->getUser()->getUID();
Expand Down

0 comments on commit e17a725

Please sign in to comment.