Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MH: Add 'Asset Owner' Field to Add Assets Modal #57

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions contenthub/hydration/hydration-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ export function formIsComplete(metadataSchema, formValues) {

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

if(!formValues['gmo:deliverableType']) return false;
staware30 marked this conversation as resolved.
Show resolved Hide resolved

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 +256,6 @@ export function getMetadataSchema(facetOptions){
name: 'Tutorial',
},
],
requires: [{
property: 'gmo:campaignName',
expectedValue: '',
operator: '!=='
}]
},
{
mapToProperty: 'gmo:licensedContent',
Expand Down Expand Up @@ -294,6 +290,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
Loading