diff --git a/package.json b/package.json index e1139fb9..edca5f15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vidispine/admin-tool", - "version": "25.3.0", + "version": "25.3.1", "private": true, "dependencies": { "@devbookhq/splitter": "^1.3.2", diff --git a/src/components/autoimport/AutoImportRuleDisplay.jsx b/src/components/autoimport/AutoImportRuleDisplay.jsx index 305f5031..2211c1f9 100644 --- a/src/components/autoimport/AutoImportRuleDisplay.jsx +++ b/src/components/autoimport/AutoImportRuleDisplay.jsx @@ -19,6 +19,7 @@ export function AutoImportRuleType({ rule }) { <> + } label="Enabled" /> + + Priority + + {JobPriority.map((priority) => ( + + {priority} + + ))} + + } label="File Name As Title" diff --git a/src/components/item/ItemSubclipCreate.jsx b/src/components/item/ItemSubclipCreate.jsx new file mode 100644 index 00000000..93f64230 --- /dev/null +++ b/src/components/item/ItemSubclipCreate.jsx @@ -0,0 +1,70 @@ +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogTitle from '@material-ui/core/DialogTitle'; +import Divider from '@material-ui/core/Divider'; +import { compose } from 'redux'; + +import * as formActions from '../../formactions/item'; +import withFormActions from '../../hoc/withFormActions'; +import withUI from '../../hoc/withUI'; + +import ItemSubclipCreateForm from './ItemSubclipCreateForm'; + +const ITEM_SUBCLIP_CREATE_FORM = 'ITEM_SUBCLIP_CREATE_FORM'; + +function ItemSubclipCreate({ + open, + onClose, + onSuccess, + onFail, + openSnackBar, + submitForm, + itemId, + initialValues, + form = ITEM_SUBCLIP_CREATE_FORM, +}) { + const onSubmitSuccess = (response, dispatch, props) => { + const messageContent = 'Subclip Job Created'; + openSnackBar({ messageContent }); + if (onSuccess) { + onSuccess(response, dispatch, props); + } + onClose(); + }; + const onSubmitFail = (error, dispatch, props) => { + const messageContent = 'Error Creating Subclip'; + openSnackBar({ messageContent, messageColor: 'secondary' }); + if (onFail) { + onFail(error, dispatch, props); + } + }; + return ( + + Create Sequence + + + + + + + + + + ); +} + +export default compose(withUI, withFormActions)(ItemSubclipCreate); diff --git a/src/components/item/ItemSubclipCreateForm.jsx b/src/components/item/ItemSubclipCreateForm.jsx new file mode 100644 index 00000000..46c452f6 --- /dev/null +++ b/src/components/item/ItemSubclipCreateForm.jsx @@ -0,0 +1,168 @@ +import FormControl from '@material-ui/core/FormControl'; +import FormControlLabel from '@material-ui/core/FormControlLabel'; +import FormHelperText from '@material-ui/core/FormHelperText'; +import InputLabel from '@material-ui/core/InputLabel'; +import MenuItem from '@material-ui/core/MenuItem'; +import Typography from '@material-ui/core/Typography'; +import { reduxForm } from 'redux-form'; + +import JobPriority from '../../const/JobPriority'; +import { required } from '../../utils/FieldValidation'; +import { TextField, Select } from '../form'; +import { loadShapeTagOptions } from '../shapetag/ShapeTagSelect'; +import { loadStorageOptions } from '../storage/StorageSelect'; +import BoolCheckbox from '../ui/BoolCheckbox'; +import Field from '../ui/Field'; +import FieldTypeArray from '../ui/FieldTypeArray'; +import FormSection from '../ui/FormSection'; +import { KeyValuePairType } from '../ui/FormType'; +import { StatefulAsyncSelect } from '../ui/Select'; + +const queryParams = () => ( + <> + + + + + + + mode + + Rendering + + Rendermode of the transcoder + + + + + + + + + + priority + + {JobPriority.map((priority) => ( + + {priority} + + ))} + + The priority to assign to the job. Default is MEDIUM + + + + } + label="holdJob" + fullWidth + /> + Created job in a HOLD state + + +); + +function ItemSubclipCreateForm({ itemId, error, handleSubmit }) { + return ( +
+ {error && {error}} + {itemId === undefined ? ( + + ) : null} + +