aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/ui/lib/environment-tree-node-behavior.js
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-10-02 11:37:03 +0300
committerKoren Lev <korenlev@gmail.com>2017-10-02 11:37:03 +0300
commita9691f5fe78af32c474754f841a71a68e2d2a484 (patch)
tree6ad620ebc1f9adf6bf9fc671d88ea0adf8e7fe07 /ui/imports/ui/lib/environment-tree-node-behavior.js
parent1e1e95ac6560f26fc154fab4c990235da5ba23c6 (diff)
ui move to docker
Change-Id: Iff31ebb3fff782e848704801b7800fdf480264a1 Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/imports/ui/lib/environment-tree-node-behavior.js')
-rw-r--r--ui/imports/ui/lib/environment-tree-node-behavior.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/ui/imports/ui/lib/environment-tree-node-behavior.js b/ui/imports/ui/lib/environment-tree-node-behavior.js
deleted file mode 100644
index 12f0407..0000000
--- a/ui/imports/ui/lib/environment-tree-node-behavior.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Inventory } from '/imports/api/inventories/inventories';
-
-export let EnvironmentTreeNodeBehavior = {
- subscribeGetChildrenFn: function (instance, env) {
- instance.subscribe('inventory.children',
- env.name, env.type, null, env.name);
- },
-
- subscribeGetFirstChildFn: function (instance, env) {
- instance.subscribe('inventory.first-child',
- env.name, env.type, null, env.name);
- },
-
- getChildrenFn: function (env) {
- let query = {
- $or: [{
- parent_id: env.name,
- parent_type: env.type,
- environment: env.name,
- show_in_tree: true
- }]
- };
-
- return Inventory.find(query);
- },
-
- hasChildrenFn: function (env) {
- let query = {
- $or: [
- {
- parent_id: env.name
- }
- ]
- };
-
- return Inventory.find(query).count() > 0;
- }
-};