diff options
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/files_sharing.js | 16 | ||||
-rw-r--r-- | apps/files_sharing/src/sharetabview.js | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js new file mode 100644 index 00000000000..c31c8c6e205 --- /dev/null +++ b/apps/files_sharing/src/files_sharing.js @@ -0,0 +1,16 @@ +// CSP config for webpack dynamic chunk loading +// eslint-disable-next-line +__webpack_nonce__ = btoa(OC.requestToken) + +// Correct the root of the app for chunk loading +// OC.linkTo matches the apps folders +// eslint-disable-next-line +__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/') + +import '../js/app' +import '../js/sharedfilelist' +import '../js/sharetabview' +import '../js/share' +import '../js/sharebreadcrumbview' + +window.OCA.Sharing = OCA.Sharing diff --git a/apps/files_sharing/src/sharetabview.js b/apps/files_sharing/src/sharetabview.js index 9b1176dbb9a..4ac09ff9f79 100644 --- a/apps/files_sharing/src/sharetabview.js +++ b/apps/files_sharing/src/sharetabview.js @@ -14,6 +14,7 @@ var TEMPLATE = '<div>' + '<div class="dialogContainer"></div>' + + '<div id="collaborationResources"></div>' + '</div>'; /** @@ -81,6 +82,7 @@ this._dialog.model.on('change', function() { self.trigger('sharesChanged', shareModel); }); + } else { this.$el.empty(); // TODO: render placeholder text? |