Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Zhen committed Apr 6, 2017
1 parent 5bb26fd commit 202bd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/FileTree/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function openNode (node, shouldBeFolded = null, deep = false) {
type: 'editor',
title: node.name,
path: node.path,
icon: 'fa fa-file-o',
content: {
body: data.content,
// path: node.path,
Expand All @@ -48,6 +49,7 @@ export function openNode (node, shouldBeFolded = null, deep = false) {
type: 'editor',
title: node.name,
path: node.path,
icon: 'fa fa-file-o',
contentType: node.contentType,
size: node.size
}))
Expand Down
1 change: 1 addition & 0 deletions app/components/Tab/TabBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const _TabLabel = ({tab, isActive, isDraggedOver, removeTab, activateTab, dragSt
onDragStart={e => dragStart({sourceType: 'TAB', sourceId: tab.id})}
>
{isDraggedOver ? <div className='tab-label-insert-pos'></div>: null}
{tab.icon ? <div className={tab.icon}></div>: null}
<div className='title'>{tab.title}</div>
<div className='control'>
<i className='close' onClick={e => { e.stopPropagation(); removeTab(tab.id) }}>×</i>
Expand Down

0 comments on commit 202bd18

Please sign in to comment.