mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 08:08:49 +01:00
Upgrade peerlibrary:blaze-components to v0.14
This change includes method renames and others UI related packages updates.
This commit is contained in:
parent
9154b06fc3
commit
c6b12dc5ad
8 changed files with 27 additions and 26 deletions
|
|
@ -7,7 +7,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
// Proxy
|
||||
openForm(options) {
|
||||
this.componentChildren('listBody')[0].openForm(options);
|
||||
this.childrenComponents('listBody')[0].openForm(options);
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
|
|
@ -25,7 +25,7 @@ BlazeComponent.extendComponent({
|
|||
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
||||
return;
|
||||
|
||||
const boardComponent = this.componentParent();
|
||||
const boardComponent = this.parentComponent();
|
||||
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
|
||||
const $cards = this.$('.js-minicards');
|
||||
$cards.sortable({
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ BlazeComponent.extendComponent({
|
|||
options = options || {};
|
||||
options.position = options.position || 'top';
|
||||
|
||||
const forms = this.componentChildren('inlinedForm');
|
||||
const forms = this.childrenComponents('inlinedForm');
|
||||
let form = _.find(forms, (component) => {
|
||||
return component.data().position === options.position;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
editTitle(evt) {
|
||||
evt.preventDefault();
|
||||
const newTitle = this.componentChildren('inlinedForm')[0].getValue();
|
||||
const newTitle = this.childrenComponents('inlinedForm')[0].getValue();
|
||||
const list = this.currentData();
|
||||
if ($.trim(newTitle)) {
|
||||
list.rename(newTitle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue