File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
src/components/autoimport Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export function AutoImportRuleType({ rule }) {
1919 < >
2020 < TextGrid title = "Storage ID" variant = "storageId" value = { rule . storage } hover />
2121 < TextGrid title = "Enabled" variant = "boolean" value = { rule . enabled } hover />
22+ < TextGrid title = "Priority" value = { rule . priority } hover />
2223 < TextGrid title = "File Name As Title" variant = "boolean" value = { rule . fileNameAsTitle } hover />
2324 < TextGrid
2425 title = "Ignore Sidecar Import"
Original file line number Diff line number Diff line change 1+ import FormControl from '@material-ui/core/FormControl' ;
12import FormControlLabel from '@material-ui/core/FormControlLabel' ;
3+ import InputLabel from '@material-ui/core/InputLabel' ;
4+ import MenuItem from '@material-ui/core/MenuItem' ;
25import Typography from '@material-ui/core/Typography' ;
36import { reduxForm , Field , FormSection } from 'redux-form' ;
47
8+ import JobPriority from '../../const/JobPriority' ;
59import { required } from '../../utils/FieldValidation' ;
6- import { TextField } from '../form' ;
10+ import { TextField , Select } from '../form' ;
711import { MetadataType } from '../metadata/MetadataForm' ;
812import { loadShapeTagOptions } from '../shapetag/ShapeTagSelect' ;
913import { loadStorageOptions } from '../storage/StorageSelect' ;
@@ -30,6 +34,16 @@ function AutoImportRuleTypeForm() {
3034 control = { < Field name = "enabled" component = { BoolCheckbox } /> }
3135 label = "Enabled"
3236 />
37+ < FormControl fullWidth >
38+ < InputLabel htmlFor = "priority" > Priority</ InputLabel >
39+ < Field name = "priority" component = { Select } >
40+ { JobPriority . map ( ( priority ) => (
41+ < MenuItem key = { priority } value = { priority } >
42+ { priority }
43+ </ MenuItem >
44+ ) ) }
45+ </ Field >
46+ </ FormControl >
3347 < FormControlLabel
3448 control = { < Field name = "fileNameAsTitle" component = { BoolCheckbox } /> }
3549 label = "File Name As Title"
You can’t perform that action at this time.
0 commit comments