Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Properly query files
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Dec 4, 2019
commit 46ce797197571f2cf873ca116e31165ea6a395bc
3 changes: 3 additions & 0 deletions apps/files/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
*/

use OC\Search\Provider\File;
use OCA\Files\AppInfo\Application;

$app = \OC::$server->query(Application::class);

// required for translation purpose
// t('Files')
Expand Down
2 changes: 1 addition & 1 deletion apps/files/js/dist/sidebar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/src/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Vue.use(VueClipboard)
Vue.prototype.t = t

window.addEventListener('DOMContentLoaded', () => {

// Init Sidebar Service
if (!window.OCA.Files) {
window.OCA.Files = {}
}

Object.assign(window.OCA.Files, { Sidebar: new Sidebar() })
Object.assign(window.OCA.Files.Sidebar, { Tab })

Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions apps/files_sharing/src/files_sharing_tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ import ExternalLinkActions from './services/ExternalLinkActions'

import TabSections from './services/TabSections'

if (window.OCA && window.OCA.Sharing) {
Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() })
// Init Sharing Tab Service
if (!window.OCA.Sharing) {
window.OCA.Sharing = {}
}

if (window.OCA && window.OCA.Sharing) {
Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })
}

Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() })
Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })
Object.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() })

window.addEventListener('DOMContentLoaded', () => {
Expand Down