mirror of
https://github.com/status-im/consul.git
synced 2025-01-20 02:29:09 +00:00
8077a41f42
* Create service/exist helper to be used in ListCollection list items * Make only existing services in Upstreams linkabled with hover effect
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);
|