mirror of
https://github.com/wekan/wekan.git
synced 2026-02-19 06:28:06 +01:00
Remove unnecessary template name declaration
This code was duplicate with the name we use to `register` the component. A update of blaze-component removed the need to duplicate this declaration.
This commit is contained in:
parent
46747b01fb
commit
ac6491ea12
16 changed files with 0 additions and 92 deletions
|
|
@ -5,10 +5,6 @@ Template.boardListHeaderBar.events({
|
|||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'archivedBoards';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.subscribe('archivedBoards');
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'board';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.draggingActive = new ReactiveVar(false);
|
||||
this.showOverlay = new ReactiveVar(false);
|
||||
|
|
@ -180,10 +176,6 @@ Template.boardBody.onRendered(function() {
|
|||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'addListForm';
|
||||
},
|
||||
|
||||
// Proxy
|
||||
open() {
|
||||
this.childComponents('inlinedForm')[0].open();
|
||||
|
|
|
|||
|
|
@ -41,10 +41,6 @@ Template.boardChangeTitlePopup.events({
|
|||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardHeaderBar';
|
||||
},
|
||||
|
||||
isStarred() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
const user = Meteor.user();
|
||||
|
|
@ -93,10 +89,6 @@ BlazeComponent.extendComponent({
|
|||
}).register('boardHeaderBar');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardChangeColorPopup';
|
||||
},
|
||||
|
||||
backgroundColors() {
|
||||
return Boards.simpleSchema()._schema.color.allowedValues;
|
||||
},
|
||||
|
|
@ -119,10 +111,6 @@ BlazeComponent.extendComponent({
|
|||
}).register('boardChangeColorPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'createBoardPopup';
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
this.visibilityMenuIsOpen = new ReactiveVar(false);
|
||||
this.visibility = new ReactiveVar('private');
|
||||
|
|
@ -170,10 +158,6 @@ BlazeComponent.extendComponent({
|
|||
}).register('createBoardPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardChangeVisibilityPopup';
|
||||
},
|
||||
|
||||
visibilityCheck() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return this.currentData() === currentBoard.permission;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
BlazeComponent.extendComponent({
|
||||
template() {
|
||||
return 'boardList';
|
||||
},
|
||||
|
||||
boards() {
|
||||
return Boards.find({
|
||||
archived: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue