defaults to showing all fields for field review option

This commit is contained in:
Seyi Adebajo 2017-11-22 07:38:12 -08:00
parent 460cb2ca24
commit e8c9d8dda7

View File

@ -202,7 +202,7 @@ export default Component.extend({
/** /**
* Returns a list of ui values and labels for review filter drop-down * Returns a list of ui values and labels for review filter drop-down
* @type {Ember.computed} * @type {Ember.ComputedProperty<{value: string, label:string}>}
*/ */
fieldReviewOptions: computed(function() { fieldReviewOptions: computed(function() {
return [ return [
@ -215,13 +215,10 @@ export default Component.extend({
}), }),
/** /**
* Toggles the field review option based on if the dataset * Default to show all fields to review
* already has a compliance policy created for fields
* @type {string} * @type {string}
*/ */
fieldReviewOption: computed('isNewComplianceInfo', function() { fieldReviewOption: 'showAll',
return get(this, 'isNewComplianceInfo') ? 'showAll' : 'showReview';
}),
/** /**
* Reference to the application notifications Service * Reference to the application notifications Service