diff --git a/wherehows-web/app/components/dataset-authors.ts b/wherehows-web/app/components/dataset-authors.ts index d52f9d8a2a..61618b50f0 100644 --- a/wherehows-web/app/components/dataset-authors.ts +++ b/wherehows-web/app/components/dataset-authors.ts @@ -81,7 +81,7 @@ export default class DatasetAuthors extends Component { * @type {ComputedProperty} * @memberof DatasetAuthors */ - requiredMinNotConfirmed: ComputedProperty = computed('confirmedOwners.length', function( + requiredMinNotConfirmed: ComputedProperty = computed('confirmedOwners.@each.type', function( this: DatasetAuthors ) { return isRequiredMinOwnersNotConfirmed(get(this, 'confirmedOwners')); diff --git a/wherehows-web/app/utils/api/datasets/owners.ts b/wherehows-web/app/utils/api/datasets/owners.ts index eb501352e3..68cca3ce2d 100644 --- a/wherehows-web/app/utils/api/datasets/owners.ts +++ b/wherehows-web/app/utils/api/datasets/owners.ts @@ -25,7 +25,7 @@ enum OwnerIdType { * @type {string} */ enum OwnerType { - Owner = 'Owner', + Owner = 'DataOwner', Consumer = 'Consumer', Delegate = 'Delegate', Producer = 'Producer', diff --git a/wherehows-web/mirage/fixtures/owners.ts b/wherehows-web/mirage/fixtures/owners.ts index 819f9f97fb..a73af292f2 100644 --- a/wherehows-web/mirage/fixtures/owners.ts +++ b/wherehows-web/mirage/fixtures/owners.ts @@ -14,7 +14,7 @@ export default >[ namespace: OwnerUrnNamespace.corpUser, source: OwnerSource.Ui, subType: null, - type: 'Owner' + type: 'DataOwner' }, { confirmedBy: '', @@ -28,6 +28,6 @@ export default >[ namespace: OwnerUrnNamespace.corpUser, source: OwnerSource.Nuage, subType: null, - type: 'Owner' + type: 'DataOwner' } ];