diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-02-03 19:56:44 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-02-13 22:20:07 +0100 |
commit | 7f886541473fb73591a8930e322250cdc6496bfc (patch) | |
tree | c0025ae7b41bece3a8c6897a093f5ceb6d5d57f7 /apps/files_versions/src/filesplugin.js | |
parent | 53e8957a556af086ce66b8eba45f0013391d7f0d (diff) | |
download | nextcloud-server-7f886541473fb73591a8930e322250cdc6496bfc.tar.gz nextcloud-server-7f886541473fb73591a8930e322250cdc6496bfc.zip |
Move of files_versions to webpack
* Move CSS into bundle
* Old merged.json no longer needed!
* No need to load the style still
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/src/filesplugin.js')
-rw-r--r-- | apps/files_versions/src/filesplugin.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/files_versions/src/filesplugin.js b/apps/files_versions/src/filesplugin.js new file mode 100644 index 00000000000..a9457c522d6 --- /dev/null +++ b/apps/files_versions/src/filesplugin.js @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2015 + * + * This file is licensed under the Affero General Public License version 3 + * or later. + * + * See the COPYING-README file. + * + */ + +(function() { + OCA.Versions = OCA.Versions || {}; + + /** + * @namespace + */ + OCA.Versions.Util = { + /** + * Initialize the versions plugin. + * + * @param {OCA.Files.FileList} fileList file list to be extended + */ + attach: function(fileList) { + if (fileList.id === 'trashbin' || fileList.id === 'files.public') { + return; + } + + fileList.registerTabView(new OCA.Versions.VersionsTabView('versionsTabView', {order: -10})); + } + }; +})(); + +OC.Plugins.register('OCA.Files.FileList', OCA.Versions.Util); + |