summaryrefslogtreecommitdiff
path: root/client/components
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-21 05:31:27 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-21 05:31:27 +0200
commit007059ed2483009043b5569e4d95049139878798 (patch)
tree484398ccda5174b6af55a8ca75510e6e69b4bb1f /client/components
parent55b2b2c464064393f8ce7bd2245bdd89bbffbeec (diff)
html..
Diffstat (limited to 'client/components')
-rw-r--r--client/components/Browser/Files/FileListView.jsx3
-rw-r--r--client/components/Tasks/TaskFormView.jsx2
2 files changed, 3 insertions, 2 deletions
diff --git a/client/components/Browser/Files/FileListView.jsx b/client/components/Browser/Files/FileListView.jsx
index df59a1d..312cc5f 100644
--- a/client/components/Browser/Files/FileListView.jsx
+++ b/client/components/Browser/Files/FileListView.jsx
@@ -1,5 +1,6 @@
import { h, Component } from 'preact'
+import format from '../../../vendor/format.js'
import FileUploadButton from './FileUploadButton.jsx'
import FileLink from '../../../containers/fileLink.js'
import TaskContentLink from '../../../containers/taskContentLink.js'
@@ -21,7 +22,7 @@ export default function FileListView (props) {
return (
<div key={i} class={props.selected === file ? 'selected' : ''}>
<span class='name'><FileLink file={file}>{file.name}</FileLink></span>
- <span class='mime'>{file.processed ? file.mime : '(waiting)'}</span>
+ <span class='mime'>{file.processed ? format.getAge(file.created_at) : '(waiting)'}</span>
<span class='duration'>{file.duration ? (file.duration.toFixed(1) + 's') : ''}</span>
<span class='actions'>
<TaskContentLink file={file}>content</TaskContentLink>
diff --git a/client/components/Tasks/TaskFormView.jsx b/client/components/Tasks/TaskFormView.jsx
index 01265b8..a567052 100644
--- a/client/components/Tasks/TaskFormView.jsx
+++ b/client/components/Tasks/TaskFormView.jsx
@@ -25,7 +25,7 @@ export default function TaskFormView (props) {
<button onClick={props.clearStyle}>x</button>
</div>
<div>
- <input type='range' step='0.01' min='0.001' max='1' value={props.alpha}
+ <input type='range' step='0.001' min='0.001' max='1' value={props.alpha}
onInput={(e) => props.setAlpha(e.target.value)}
/>
alpha: {props.alpha}