|
| 1 | + |
| 2 | +import React, { Component } from 'react'; |
| 3 | +import ItemButton from '../item_Button.jsx' |
| 4 | + |
| 5 | + |
| 6 | +export class BumpButton extends Component { |
| 7 | + |
| 8 | + render() { |
| 9 | + var obj = { |
| 10 | + bumped: new Date(), |
| 11 | + } |
| 12 | + return <ItemButton file={this.props.file} obj={obj} symbol={'↑'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 13 | + |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +export class SkipButton extends Component { |
| 20 | + render() { |
| 21 | + |
| 22 | + var obj = { |
| 23 | + TranscodeDecisionMaker:"Transcode success", |
| 24 | + lastTranscodeDate: new Date(), |
| 25 | + } |
| 26 | + return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 27 | + |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | + |
| 32 | +export class SkipHealthCheckButton extends Component { |
| 33 | + render() { |
| 34 | + |
| 35 | + var obj = { |
| 36 | + HealthCheck: "Success", |
| 37 | + lastHealthCheckDate: new Date(), |
| 38 | + } |
| 39 | + return <ItemButton file={this.props.file} obj={obj} symbol={'⤳'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 40 | + |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | + |
| 45 | +export class CancelBumpButton extends Component { |
| 46 | + render() { |
| 47 | + |
| 48 | + var obj = { |
| 49 | + bumped: false, |
| 50 | + } |
| 51 | + return <ItemButton file={this.props.file} obj={obj} symbol={'X'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 52 | + |
| 53 | + } |
| 54 | +} |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +export class RedoButton extends Component { |
| 60 | + |
| 61 | + render() { |
| 62 | + |
| 63 | + var obj = { |
| 64 | + [this.props.mode]: "Queued", |
| 65 | + processingStatus: false, |
| 66 | + createdAt: new Date(), |
| 67 | + } |
| 68 | + |
| 69 | + |
| 70 | + return <ItemButton file={this.props.file} obj={obj} symbol={'↻'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 71 | + } |
| 72 | +} |
| 73 | + |
| 74 | +export class ForceProcessingButton extends Component { |
| 75 | + |
| 76 | + render() { |
| 77 | + var obj = { |
| 78 | + forceProcessing: true, |
| 79 | + } |
| 80 | + return <ItemButton file={this.props.file} obj={obj} symbol={'No'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 81 | + } |
| 82 | +} |
| 83 | + |
| 84 | +export class CancelForceProcessingButton extends Component { |
| 85 | + |
| 86 | + render() { |
| 87 | + var obj = { |
| 88 | + forceProcessing: false, |
| 89 | + } |
| 90 | + return <ItemButton file={this.props.file} obj={obj} symbol={'Yes'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 91 | + } |
| 92 | +} |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +export class IgnoreButton extends Component { |
| 97 | + |
| 98 | + render() { |
| 99 | + var obj = { |
| 100 | + [this.props.mode]: "Ignored", |
| 101 | + processingStatus: false, |
| 102 | + createdAt: new Date(), |
| 103 | + } |
| 104 | + return <ItemButton file={this.props.file} obj={obj} symbol={'Ignore'} type="updateDBAction" time={this.props.lastQueueUpdateTime} /> |
| 105 | + } |
| 106 | +} |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | +export class CreateSampleButton extends Component { |
| 113 | + render() { |
| 114 | + |
| 115 | + return <ItemButton file={this.props.file} symbol={'✄'} type="createSample" time={this.props.lastQueueUpdateTime} /> |
| 116 | + } |
| 117 | +} |
| 118 | + |
0 commit comments