mirror of https://github.com/status-im/consul.git
12 lines
245 B
JavaScript
12 lines
245 B
JavaScript
|
import { helper } from '@ember/component/helper';
|
||
|
|
||
|
export function serviceExists([item], hash) {
|
||
|
if (typeof item.InstanceCount === 'undefined') {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return item.InstanceCount > 0;
|
||
|
}
|
||
|
|
||
|
export default helper(serviceExists);
|