fix ownership checking bug

This commit is contained in:
cptran777 2018-04-10 10:30:04 -07:00
parent 2e6a1e2b93
commit 42bac36e70
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ export default class DatasetAuthors extends Component {
* @type {ComputedProperty<boolean>} * @type {ComputedProperty<boolean>}
* @memberof DatasetAuthors * @memberof DatasetAuthors
*/ */
requiredMinNotConfirmed: ComputedProperty<boolean> = computed('confirmedOwners.length', function( requiredMinNotConfirmed: ComputedProperty<boolean> = computed('confirmedOwners.@each.type', function(
this: DatasetAuthors this: DatasetAuthors
) { ) {
return isRequiredMinOwnersNotConfirmed(get(this, 'confirmedOwners')); return isRequiredMinOwnersNotConfirmed(get(this, 'confirmedOwners'));

View File

@ -25,7 +25,7 @@ enum OwnerIdType {
* @type {string} * @type {string}
*/ */
enum OwnerType { enum OwnerType {
Owner = 'Owner', Owner = 'DataOwner',
Consumer = 'Consumer', Consumer = 'Consumer',
Delegate = 'Delegate', Delegate = 'Delegate',
Producer = 'Producer', Producer = 'Producer',

View File

@ -14,7 +14,7 @@ export default <Array<IOwner>>[
namespace: OwnerUrnNamespace.corpUser, namespace: OwnerUrnNamespace.corpUser,
source: OwnerSource.Ui, source: OwnerSource.Ui,
subType: null, subType: null,
type: 'Owner' type: 'DataOwner'
}, },
{ {
confirmedBy: '', confirmedBy: '',
@ -28,6 +28,6 @@ export default <Array<IOwner>>[
namespace: OwnerUrnNamespace.corpUser, namespace: OwnerUrnNamespace.corpUser,
source: OwnerSource.Nuage, source: OwnerSource.Nuage,
subType: null, subType: null,
type: 'Owner' type: 'DataOwner'
} }
]; ];