mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 08:18:50 +00:00
Added List and Menu clean up.
This commit is contained in:
parent
2f3f82477a
commit
e60c32894c
7 changed files with 211 additions and 9 deletions
|
|
@ -1,12 +1,24 @@
|
|||
import { M } from '../../lib/assets/materialize.js';
|
||||
import { Lists } from '../../../imports/api/lists.js';
|
||||
import { Menus } from '../../../imports/api/menu.js';
|
||||
import { TaskItems } from '../../../imports/api/tasks.js';
|
||||
import { Products } from '../../../imports/api/products.js';
|
||||
import { Stores } from '../../../imports/api/stores.js';
|
||||
|
||||
Template.cleanUp.onCreated(function() {
|
||||
|
||||
this.subscribe("allLists");
|
||||
this.subscribe("allMenus");
|
||||
this.subscribe("allTasks");
|
||||
this.subscribe("allProducts");
|
||||
this.subscribe("allStores");
|
||||
});
|
||||
|
||||
Template.cleanUp.onRendered(function() {
|
||||
var elems = document.querySelectorAll('.tooltipped');
|
||||
var instances = M.Tooltip.init(elems, {});
|
||||
|
||||
var elemsm = document.querySelectorAll('.modal');
|
||||
var instancesm = M.Modal.init(elemsm, {});
|
||||
});
|
||||
|
||||
Template.cleanUp.helpers({
|
||||
|
|
@ -14,5 +26,24 @@ Template.cleanUp.helpers({
|
|||
});
|
||||
|
||||
Template.cleanUp.events({
|
||||
|
||||
'click #cleanLists' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("cleanWhat", "Lists");
|
||||
},
|
||||
'click #cleanMenus' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("cleanWhat", "Menus");
|
||||
},
|
||||
'click #cleanProducts' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("cleanWhat", "Products");
|
||||
},
|
||||
'click #cleanStores' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("cleanWhat", "Stores");
|
||||
},
|
||||
'click #cleanTasks' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("cleanWhat", "Tasks");
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue