check upstream for file changed

pull/1/head
yann300 6 years ago
parent a74b18e45d
commit 59cb039486
  1. 6
      src/app/panels/editor-panel.js
  2. 2
      src/app/panels/tab-proxy.js

@ -39,6 +39,12 @@ class EditorPanel {
We listen here on event from the tab component to display / hide the editor and mainpanel
depending on the content that should be displayed
*/
self._deps.fileManager.event.register('currentFileChanged', (file) => {
// we check upstream for "fileChanged"
self._view.editor.style.display = 'block'
self._components.contextView.show()
self._view.mainPanel.style.display = 'none'
})
self.tabProxy.event.on('switchFile', (file) => {
self._view.editor.style.display = 'block'
self._components.contextView.show()

@ -37,7 +37,7 @@ export class TabProxy {
this.event.emit('closeFile', file)
})
}
this.active(file)
this.active(file) // this put the css class "active"
})
fileManager.event.register('fileRenamed', (oldName, newName) => {

Loading…
Cancel
Save