summaryrefslogtreecommitdiff
path: root/client/components
diff options
context:
space:
mode:
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}