|
@@ -43,7 +43,6 @@ BlazeComponent.extendComponent({
|
|
const position = this.currentData().position;
|
|
const position = this.currentData().position;
|
|
const title = textarea.val().trim();
|
|
const title = textarea.val().trim();
|
|
|
|
|
|
- const formComponent = this.childComponents('addCardForm')[0];
|
|
|
|
let sortIndex;
|
|
let sortIndex;
|
|
if (position === 'top') {
|
|
if (position === 'top') {
|
|
sortIndex = Utils.calculateIndex(null, firstCardDom).base;
|
|
sortIndex = Utils.calculateIndex(null, firstCardDom).base;
|
|
@@ -51,6 +50,7 @@ BlazeComponent.extendComponent({
|
|
sortIndex = Utils.calculateIndex(lastCardDom, null).base;
|
|
sortIndex = Utils.calculateIndex(lastCardDom, null).base;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ const formComponent = this.cardFormComponent();
|
|
const members = formComponent.members.get();
|
|
const members = formComponent.members.get();
|
|
const labelIds = formComponent.labels.get();
|
|
const labelIds = formComponent.labels.get();
|
|
const customFields = formComponent.customFields.get();
|
|
const customFields = formComponent.customFields.get();
|
|
@@ -132,6 +132,16 @@ BlazeComponent.extendComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ cardFormComponent() {
|
|
|
|
+ for (const inlinedForm of this.childComponents('inlinedForm')) {
|
|
|
|
+ const [addCardForm] = inlinedForm.childComponents('addCardForm');
|
|
|
|
+ if (addCardForm) {
|
|
|
|
+ return addCardForm;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ },
|
|
|
|
+
|
|
scrollToBottom() {
|
|
scrollToBottom() {
|
|
const container = this.firstNode();
|
|
const container = this.firstNode();
|
|
$(container).animate({
|
|
$(container).animate({
|