Skip to content

Commit

Permalink
MH: Add 'Asset Owner' Field to Add Assets Modal (#57)
Browse files Browse the repository at this point in the history
* MH: Add 'Asset Owner' Field to Add Assets Modal

* Update hydration-utils.js

* Comment Update
  • Loading branch information
staware30 authored Apr 4, 2024
1 parent 2936818 commit 1ebda0f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions contenthub/hydration/hydration-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export function formIsComplete(metadataSchema, formValues) {

if(formValues['gmo:campaignName']){
if(!formValues['gmo:programName']) return false;
if(!formValues['gmo:deliverableType']) return false;
}

if(formValues['gmo:licensedContent'] !== 'no'){
if(!formValues['gmo:usageTerms']) return false;
if(formValues['gmo:licensedContent'] === 'yes-expire' && !formValues['gmo:licenseExpiryDate']) return false;
Expand Down Expand Up @@ -255,11 +254,6 @@ export function getMetadataSchema(facetOptions){
name: 'Tutorial',
},
],
requires: [{
property: 'gmo:campaignName',
expectedValue: '',
operator: '!=='
}]
},
{
mapToProperty: 'gmo:licensedContent',
Expand Down Expand Up @@ -294,6 +288,12 @@ export function getMetadataSchema(facetOptions){
{ property: 'gmo:licensedContent', expectedValue: '', operator: '!==' }
],
},
{
mapToProperty: 'gmo:owner',
label:'Campaign/Asset Owner',
element: 'textarea',
required: true,
},
{
mapToProperty: 'gmo:contentType',
label: 'Content Type',
Expand Down

0 comments on commit 1ebda0f

Please sign in to comment.