makes nonOwner compliance entity attribute nullable

This commit is contained in:
Seyi Adebajo 2018-03-19 10:04:29 -07:00
parent 035ea922ae
commit 8b36ab0fce
3 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import { IComplianceDataType } from 'wherehows-web/typings/api/list/compliance-d
import { getFieldSuggestions } from 'wherehows-web/utils/datasets/compliance-suggestions';
import noop from 'wherehows-web/utils/noop';
import { hasEnumerableKeys } from 'wherehows-web/utils/object';
import { IComplianceEntity } from 'wherehows-web/typings/api/datasets/compliance';
/**
* Constant definition for an unselected field format
@ -89,7 +90,7 @@ export default class DatasetComplianceRow extends DatasetTableRow {
* @type {ComputedProperty<boolean>}
* @memberof DatasetComplianceRow
*/
nonOwner: ComputedProperty<boolean> = alias('field.nonOwner').readOnly();
nonOwner: ComputedProperty<IComplianceEntity['nonOwner']> = alias('field.nonOwner').readOnly();
/**
* The field's dataType attribute

View File

@ -906,7 +906,7 @@ export default class DatasetCompliance extends Component {
identifierType: ComplianceFieldIdValue.None,
logicalType: null,
securityClassification: null,
nonOwner: false
nonOwner: null
}));
const confirmHandler = (function() {

View File

@ -27,7 +27,7 @@ export interface IComplianceEntity {
// User specified / default security classification for the related schema field
securityClassification: Classification | null;
// Flag indicating that the dataset is of a subject type, default is false
nonOwner: boolean;
nonOwner: boolean | null;
// Flag indicating that this compliance field is not editable by the end user
// field should also be filtered from persisted policy
readonly readonly?: boolean;