diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-02-13 22:43:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 22:43:09 +0100 |
commit | cf091539a7018d20c50ebc97f77ace99e9e00297 (patch) | |
tree | c0025ae7b41bece3a8c6897a093f5ceb6d5d57f7 /apps/files_versions/src/filesplugin.js | |
parent | 53e8957a556af086ce66b8eba45f0013391d7f0d (diff) | |
parent | 7f886541473fb73591a8930e322250cdc6496bfc (diff) | |
download | nextcloud-server-cf091539a7018d20c50ebc97f77ace99e9e00297.tar.gz nextcloud-server-cf091539a7018d20c50ebc97f77ace99e9e00297.zip |
Merge pull request #14005 from nextcloud/enh/versions_to_webpack
Move files_versions to webpack
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); + |