Skip to content

Commit

Permalink
added title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
haimich committed Dec 27, 2016
1 parent 3a0b788 commit 0651ee9
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/main/FileViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,24 @@ export default class FileViewComponent extends React.Component<Props, {}> {
for (let i = 0; i < this.props.files.length; i++) {
const file = this.props.files[i]

fileList.push(<li key={i}>
<span className="file-open" onClick={event => {
event.preventDefault()
open(file.path)
}}
>
<span className="file-icon">{getFileIconHtml(getFilename(file.path))}</span>
fileList.push(
<li key={i} title={t('Klicken um zu öffnen')}>
<span className="file-open" onClick={event => {
event.preventDefault()
open(file.path)
}}
>
<span className="file-icon">{getFileIconHtml(getFilename(file.path))}</span>

<span className="file-view">{shortenFilename(getFilename(file.path), 38)}</span>
</span>
<span className="file-view">{shortenFilename(getFilename(file.path), 38)}</span>
</span>

<span className="glyphicon glyphicon-remove-circle pull-right" aria-hidden="true" onClick={event => {
event.preventDefault()
this.props.handleDeleteFile(file)
}} />
</li>)
<span className="glyphicon glyphicon-remove-circle pull-right" aria-hidden="true" onClick={event => {
event.preventDefault()
this.props.handleDeleteFile(file)
}} />
</li>
)
}

if (fileList.length === 0) {
Expand Down

0 comments on commit 0651ee9

Please sign in to comment.