aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/files_sharing.ts (renamed from apps/files_sharing/src/files_sharing.js)10
-rw-r--r--apps/files_sharing/src/main.ts6
2 files changed, 7 insertions, 9 deletions
diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.ts
index 0578da7f9c5..a92f7ceca93 100644
--- a/apps/files_sharing/src/files_sharing.js
+++ b/apps/files_sharing/src/files_sharing.ts
@@ -1,5 +1,5 @@
/**
- * @copyright Copyright (c) 2016 John Molakvoæ <skjnldsv@protonmail.com>
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Julius Härtl <jus@bitgrid.net>
@@ -20,6 +20,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+import registerSharingViews from './views/shares'
-import '../js/app.js'
-import '../js/sharedfilelist.js'
+import './actions/acceptShareAction'
+import './actions/rejectShareAction'
+import './actions/restoreShareAction'
+
+registerSharingViews()
diff --git a/apps/files_sharing/src/main.ts b/apps/files_sharing/src/main.ts
index c1d91bb470d..040dd2e17ad 100644
--- a/apps/files_sharing/src/main.ts
+++ b/apps/files_sharing/src/main.ts
@@ -20,10 +20,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import './actions/acceptShareAction'
-import './actions/rejectShareAction'
-import './actions/restoreShareAction'
-import registerSharingViews from './views/shares'
// register default shares types
Object.assign(window.OC, {
@@ -41,5 +37,3 @@ Object.assign(window.OC, {
SHARE_TYPE_SCIENCEMESH: 15,
},
})
-
-registerSharingViews()