Added FakeModal changes

This commit is contained in:
Harry Hedger 2016-02-21 16:33:20 +01:00
parent cf7fcc22da
commit ecff0cea0a
2 changed files with 5 additions and 0 deletions

View file

@ -119,6 +119,9 @@ export default class Modal extends Plugin {
tab.addEventListener('click', event => {
event.preventDefault()
console.log(tabId)
this.core.iteratePlugins(plugin => {
console.log('name: ', plugin.name)
})
this.hideAllTabPanels()
this.showTabPanel(tabId)
})

View file

@ -1,9 +1,11 @@
import Uppy from '../../../../src/core/Core.js'
import Dummy from '../../../../src/plugins/Dummy.js'
import GoogleDrive from '../../../../src/plugins/GoogleDrive.js'
import Modal from '../../../../src/plugins/Modal.js'
const uppy = new Uppy({debug: true})
uppy
.use(Modal)
.use(Dummy, {target: Modal})
.use(GoogleDrive, {target: Modal})
.run()