2023-02-25 19:42:07 +01:00
|
|
|
import { ReactiveCache } from '/imports/reactiveCache';
|
|
|
|
|
|
2026-03-08 11:02:09 +02:00
|
|
|
Template.rulesList.onCreated(function () {
|
|
|
|
|
this.subscribe('allRules');
|
|
|
|
|
});
|
2018-08-15 18:47:09 +02:00
|
|
|
|
2026-03-08 11:02:09 +02:00
|
|
|
Template.rulesList.helpers({
|
2018-08-15 18:47:09 +02:00
|
|
|
rules() {
|
2018-09-14 17:39:37 +02:00
|
|
|
const boardId = Session.get('currentBoard');
|
2023-02-25 19:42:07 +01:00
|
|
|
const ret = ReactiveCache.getRules({
|
2018-09-16 01:50:36 +03:00
|
|
|
boardId,
|
2018-09-14 17:39:37 +02:00
|
|
|
});
|
2023-02-25 19:42:07 +01:00
|
|
|
return ret;
|
2018-08-15 18:47:09 +02:00
|
|
|
},
|
2026-03-08 11:02:09 +02:00
|
|
|
});
|