nextcloud/apps/files_versions/src/filesplugin.js
John Molakvoæ (skjnldsv) 0f8aca9d87
Bump compiled files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-07-31 09:26:43 +02:00

33 lines
659 B
JavaScript

/*
* 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(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)