Skip to content

Commit

Permalink
ref elan-ev#569 CHANGE Description is now configurable and disabled p…
Browse files Browse the repository at this point in the history
…er default
  • Loading branch information
Dennis Pfahl committed Apr 22, 2020
1 parent b974193 commit cf6b50f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ const SCHEMA = {
},
upload: {
enableSeries: 'string',
enableDescription: 'string',
seriesId: 'string',
workflowId: 'string',
// This gets some special treatment in `fetchAcl`. After `fetchAcl` is
Expand Down
8 changes: 7 additions & 1 deletion src/ui/studio/save-creation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ const UploadForm = ({ opencast, uploadState, recordings, handleUpload }) => {

const enabledSeries = useSettings().upload?.enableSeries;
const displaySeries = enabledSeries === 'true' ? 'block' : 'none';
const enableDescription = useSettings().upload?.enableDescription;
const displayDescription = enableDescription === 'true' ? 'block' : 'none';


function handleInputChange(event) {
Expand Down Expand Up @@ -347,7 +349,10 @@ const UploadForm = ({ opencast, uploadState, recordings, handleUpload }) => {
onChange={handleInputChange}
/>
</FormField>

<div sx={{
display : displayDescription,
marginBottom : '30px'
}}>
<FormField label={t('save-creation-label-description')}>
<Input
name="description"
Expand All @@ -357,6 +362,7 @@ const UploadForm = ({ opencast, uploadState, recordings, handleUpload }) => {
disabled={uploadState.state === STATE_UPLOADING}
/>
</FormField>
</div>
<div sx={{
display : displaySeries,
marginBottom : '30px'
Expand Down

0 comments on commit cf6b50f

Please sign in to comment.