|
@@ -1,3 +1,5 @@
|
|
|
|
+import { ReactiveCache } from '/imports/reactiveCache';
|
|
|
|
+
|
|
BlazeComponent.extendComponent({
|
|
BlazeComponent.extendComponent({
|
|
onCreated() {
|
|
onCreated() {
|
|
this.subscribe('allRules');
|
|
this.subscribe('allRules');
|
|
@@ -5,9 +7,10 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
rules() {
|
|
rules() {
|
|
const boardId = Session.get('currentBoard');
|
|
const boardId = Session.get('currentBoard');
|
|
- return Rules.find({
|
|
|
|
|
|
+ const ret = ReactiveCache.getRules({
|
|
boardId,
|
|
boardId,
|
|
});
|
|
});
|
|
|
|
+ return ret;
|
|
},
|
|
},
|
|
events() {
|
|
events() {
|
|
return [{}];
|
|
return [{}];
|