Sfoglia il codice sorgente

Setting up the Google Drive rendering.

Harry Hedger 9 anni fa
parent
commit
b59f8da0a7
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 3 0
      src/plugins/GoogleDrive.js
  2. 1 3
      src/plugins/Modal.js

+ 3 - 0
src/plugins/GoogleDrive.js

@@ -116,10 +116,13 @@ export default class Google extends Plugin {
   install () {
     const caller = this
     this.target = this.getTarget(this.opts.target, caller)
+    console.log('this.targetgtsds')
+    console.log(this.target)
     return
   }
 
   renderAuth () {
+    console.log('RenderAuth')
     return `<div><h1>Authenticate With Google Drive</h1><a href=${ this.authUrl || '#' }>Authenticate</a></div>`
   }
 

+ 1 - 3
src/plugins/Modal.js

@@ -119,9 +119,7 @@ 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.core.getPlugin(tabId.substr(1)).focus()
         this.hideAllTabPanels()
         this.showTabPanel(tabId)
       })