sidebar tab declaration mandatory parameters added and removed unused
This commit is contained in:
parent
539b30154e
commit
4a04a6afc4
|
@ -29,20 +29,17 @@ import {translate as t, translatePlural as n } from '@nextcloud/l10n'
|
|||
import VersionTab from '../../files_versions/src/views/VersionTab'
|
||||
import TabSections from '../../files_versions/src/services/TabSections'
|
||||
|
||||
|
||||
|
||||
// Init Version Tab Service
|
||||
if (!window.OCA.Versions) {
|
||||
window.OCA.Versions = {}
|
||||
}
|
||||
|
||||
Object.assign(window.OCA.Versions, { VersionTabSections: new TabSections() });
|
||||
Object.assign(window.OCA.Versions, { VersionTabSections: new TabSections() })
|
||||
|
||||
Vue.prototype.t = t
|
||||
Vue.prototype.n = n
|
||||
Vue.use(VueClipboard)
|
||||
|
||||
|
||||
// Init Sharing tab component
|
||||
const View = Vue.extend(VersionTab)
|
||||
let TabInstance = null
|
||||
|
@ -50,14 +47,9 @@ let TabInstance = null
|
|||
window.addEventListener('DOMContentLoaded', function() {
|
||||
if (OCA.Files && OCA.Files.Sidebar) {
|
||||
OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab({
|
||||
|
||||
_fileInfo: null,
|
||||
|
||||
_currentUser: null,
|
||||
|
||||
_client: null,
|
||||
|
||||
|
||||
id: 'versions',
|
||||
name: t('files_versions', 'version'),
|
||||
icon: 'icon-version',
|
||||
async mount(el, fileInfo, context) {
|
||||
if (TabInstance) {
|
||||
TabInstance.$destroy()
|
||||
|
|
Loading…
Reference in New Issue