add url to iframe view

pull/1/head
yann300 6 years ago
parent 0f99a72f9a
commit fdb869e12f
  1. 2
      src/app/panels/righthand-panel.js
  2. 4
      src/app/ui/draggableContent.js

@ -83,7 +83,7 @@ module.exports = class RighthandPanel {
})
var tab = new PluginTab(json)
var content = tab.render()
document.querySelector('body').appendChild(modal.render(json.title, content))
document.querySelector('body').appendChild(modal.render(json.title, json.url, content))
self._components.pluginManager.register(json, modal, content)
}

@ -43,12 +43,12 @@ module.exports =
this.closeCb = closeCb
}
render (title, content) {
render (title, url, content) {
this.content = content
var el = yo`
<div class=${css.containerDraggableModal}>
<div>
<div class="${css.headerDraggableModal} title" title=${title}><span>${title}</span>
<div class="${css.headerDraggableModal} title" title=${title}><span title="${title}" >${title}</span><span title="${url}" > - ${url}</span>
<div class=${css.modalActions}>
<i onclick=${() => { this.minimize() }} class="fa fa-window-minimize ${css.modalAction}"></i>
<i onclick=${() => { this.maximise() }} class="fa fa-window-maximize ${css.modalAction}"></i>

Loading…
Cancel
Save