Only display inventory file for scm sources

This commit is contained in:
Jake McDermott
2020-11-25 11:01:05 -05:00
parent 169f55c908
commit 294b9c8910

View File

@@ -214,10 +214,14 @@ function InventorySourceDetail({ inventorySource, i18n }) {
}
/>
)}
<Detail
label={i18n._(t`Inventory file`)}
value={source_path === '' ? i18n._(t`/ (project root)`) : source_path}
/>
{source === 'scm' ? (
<Detail
label={i18n._(t`Inventory file`)}
value={
source_path === '' ? i18n._(t`/ (project root)`) : source_path
}
/>
) : null}
<Detail label={i18n._(t`Verbosity`)} value={VERBOSITY[verbosity]} />
<Detail
label={i18n._(t`Cache timeout`)}