Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,22 @@ export default {
})
.then((application) => {
if (this.instanceFollowUp && !this.shouldHideInstanceSteps) {
return instanceApi.create({
const payload = {
applicationId: application.id,
name: this.form[INSTANCE_SLUG].input.name,
projectType: this.form[INSTANCE_SLUG].input.instanceType,
stack: this.form[INSTANCE_SLUG].input.nodeREDVersion,
template: this.form[INSTANCE_SLUG].input.template,
flowBlueprintId: this.form[FLOWS_SLUG].blueprint?.id ?? '',
flows: this.form[FLOWS_SLUG].flows ?? ''
})
template: this.form[INSTANCE_SLUG].input.template
}

if (this.form[FLOWS_SLUG].blueprint?.id) {
payload.flowBlueprintId = this.form[FLOWS_SLUG].blueprint?.id
}

if (this.form[FLOWS_SLUG].flows) {
payload.flows = this.form[FLOWS_SLUG].flows
}
return instanceApi.create(payload)
}
})
.catch(err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ export default {
name: this.form[INSTANCE_SLUG].input.name,
projectType: this.form[INSTANCE_SLUG].input.instanceType,
stack: this.form[INSTANCE_SLUG].input.nodeREDVersion,
template: this.form[INSTANCE_SLUG].input.template,
flowBlueprintId: this.form[FLOWS_SLUG].blueprint?.id ?? '',
flows: this.form[FLOWS_SLUG].flows ?? ''
template: this.form[INSTANCE_SLUG].input.template
}

if (this.form[FLOWS_SLUG].blueprint?.id) {
payload.flowBlueprintId = this.form[FLOWS_SLUG].blueprint?.id
}

if (this.form[FLOWS_SLUG].flows) {
payload.flows = this.form[FLOWS_SLUG].flows
}

return instanceApi.create(payload)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/frontend/cypress/tests/invitations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('FlowFuse platform invitees', () => {
})

cy.get('[data-el="notifications-drawer"]').should('be.visible')
cy.get('[data-el="invitation-message"]').eq(0).click()
cy.get('[data-el="invitation-message"]:first .body').click()

// user should see a message

Expand Down
Loading