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:
Maxime Quandalle 2016-01-03 23:45:46 +01:00
parent 46747b01fb
commit ac6491ea12
16 changed files with 0 additions and 92 deletions

View file

@ -1,10 +1,6 @@
const activitiesPerPage = 20;
BlazeComponent.extendComponent({
template() {
return 'activities';
},
onCreated() {
// XXX Should we use ReactiveNumber?
this.page = new ReactiveVar(1);

View file

@ -1,10 +1,6 @@
const commentFormIsOpen = new ReactiveVar(false);
BlazeComponent.extendComponent({
template() {
return 'commentForm';
},
onDestroyed() {
commentFormIsOpen.set(false);
},

View file

@ -5,10 +5,6 @@ Template.boardListHeaderBar.events({
});
BlazeComponent.extendComponent({
template() {
return 'archivedBoards';
},
onCreated() {
this.subscribe('archivedBoards');
},

View file

@ -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();

View file

@ -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;

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'boardList';
},
boards() {
return Boards.find({
archived: false,

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'cardDetails';
},
mixins() {
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
},

View file

@ -4,10 +4,6 @@ Meteor.startup(() => {
});
BlazeComponent.extendComponent({
template() {
return 'formLabel';
},
onCreated() {
this.currentColor = new ReactiveVar(this.data().color);
},

View file

@ -7,10 +7,6 @@
/// - getLabel(): i18n key for the text displayed in the popup, usually to
/// explain how to get the data out of the source system.
const ImportPopup = BlazeComponent.extendComponent({
template() {
return 'importPopup';
},
jsonText() {
return Session.get('import.text');
},

View file

@ -1,10 +1,6 @@
const { calculateIndex } = Utils;
BlazeComponent.extendComponent({
template() {
return 'list';
},
// Proxy
openForm(options) {
this.childComponents('listBody')[0].openForm(options);

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'listBody';
},
mixins() {
return [Mixins.PerfectScrollbar];
},
@ -122,10 +118,6 @@ function toggleValueInReactiveArray(reactiveValue, value) {
}
BlazeComponent.extendComponent({
template() {
return 'addCardForm';
},
onCreated() {
this.labels = new ReactiveVar([]);
this.members = new ReactiveVar([]);

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'listHeader';
},
editTitle(evt) {
evt.preventDefault();
const newTitle = this.childComponents('inlinedForm')[0].getValue().trim();

View file

@ -9,10 +9,6 @@ const viewTitles = {
};
BlazeComponent.extendComponent({
template() {
return 'sidebar';
},
mixins() {
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
},
@ -232,10 +228,6 @@ Template.membersWidget.onRendered(draggableMembersLabelsWidgets);
Template.labelsWidget.onRendered(draggableMembersLabelsWidgets);
BlazeComponent.extendComponent({
template() {
return 'addMemberPopup';
},
onCreated() {
this.error = new ReactiveVar('');
this.loading = new ReactiveVar(false);

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'archivesSidebar';
},
tabs() {
return [
{ name: TAPi18n.__('cards'), slug: 'cards' },

View file

@ -1,8 +1,4 @@
BlazeComponent.extendComponent({
template() {
return 'filterSidebar';
},
events() {
return [{
'click .js-toggle-label-filter'(evt) {
@ -37,10 +33,6 @@ function mutateSelectedCards(mutationName, ...args) {
}
BlazeComponent.extendComponent({
template() {
return 'multiselectionSidebar';
},
mapSelection(kind, _id) {
return Cards.find(MultiSelection.getMongoSelector()).map((card) => {
const methodName = kind === 'label' ? 'hasLabel' : 'isAssigned';

View file

@ -52,10 +52,6 @@ Template.userAvatarInitials.helpers({
});
BlazeComponent.extendComponent({
template() {
return 'changeAvatarPopup';
},
onCreated() {
this.error = new ReactiveVar('');
},