Only show sync button on inventories with sources

This commit is contained in:
Michael Abashian 2017-05-24 17:40:28 -04:00
parent eff4100092
commit 4a08ed333b

View File

@ -93,7 +93,7 @@ export default ['i18n', function(i18n) {
mode: 'all',
ngClick: 'syncInventory(inventory)',
awToolTip: i18n._('Sync all inventory sources'),
ngShow: "inventory.kind === ''",
ngShow: "inventory.kind === '' && inventory.has_inventory_sources",
dataPlacement: "top",
},
edit: {