mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-01 05:13:15 +00:00
refactors is id check in dataset compliance list generation. reenables component render for dataset owner list and removes false condition no known owners text
This commit is contained in:
parent
656fe9ae34
commit
73f0ea651f
@ -334,8 +334,9 @@ export default class DatasetCompliance extends Component {
|
|||||||
* @returns {Array<IComplianceFieldIdentifierOption>}
|
* @returns {Array<IComplianceFieldIdentifierOption>}
|
||||||
*/
|
*/
|
||||||
const insertDivider = (types: Array<IComplianceFieldIdentifierOption>): Array<IComplianceFieldIdentifierOption> => {
|
const insertDivider = (types: Array<IComplianceFieldIdentifierOption>): Array<IComplianceFieldIdentifierOption> => {
|
||||||
const ids = types.filter(({ isId }) => isId);
|
const isId = ({ isId }: IComplianceFieldIdentifierOption): boolean => isId;
|
||||||
const nonIds = types.filter(({ isId }) => !isId);
|
const ids = types.filter(isId);
|
||||||
|
const nonIds = types.filter(type => !isId(type));
|
||||||
const divider = {
|
const divider = {
|
||||||
value: '',
|
value: '',
|
||||||
label: '---------',
|
label: '---------',
|
||||||
|
@ -24,6 +24,4 @@
|
|||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
|
||||||
No known owners
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -41,10 +41,13 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<h3 class="dataset-name">
|
<h3 class="dataset-name">
|
||||||
{{model.nativeName}}
|
<div class="container">
|
||||||
|
{{model.nativeName}}
|
||||||
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{dataset-owner-list owners=owners datasetName=model.nativeName}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#ivy-tabs selection=tabSelected as |tabs|}}
|
{{#ivy-tabs selection=tabSelected as |tabs|}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user