mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-25 01:20:24 +08:00
feat(salesforce): can convert a Lead to a Contact
Summary: In order to create a Contact from a Lead you need to: 1. Create an Account 2. Create an Opportunity and link it to the newly created Account 3. Create a Contact and link it to the Account 4. Create an OpportunityContactRole and link it to both a Contact and an Opportunity Working on passing pending object ids around add in window openers create lead and check if lead got deleted Saving form conversion workflow syncs with opportunities now Test Plan: manual Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1599
This commit is contained in:
parent
6fcd5f2ced
commit
4f62a7c9e1
2 changed files with 34 additions and 9 deletions
|
@ -268,9 +268,12 @@ class WindowManager
|
|||
return @newColdWindow(options)
|
||||
|
||||
supportedHotWindowKeys = [
|
||||
"x"
|
||||
"y"
|
||||
"title"
|
||||
"width"
|
||||
"height"
|
||||
"bounds"
|
||||
"windowType"
|
||||
"windowProps"
|
||||
]
|
||||
|
@ -293,6 +296,23 @@ class WindowManager
|
|||
win.setLoadSettings(newLoadSettings)
|
||||
win.showWhenLoaded()
|
||||
|
||||
win.browserWindow.setTitle options.title ? ""
|
||||
|
||||
if options.x and options.y
|
||||
win.browserWindow.setPosition options.x, options.w
|
||||
|
||||
if options.width or options.height
|
||||
[w,h] = win.browserWindow.getSize()
|
||||
w = options.width ? w
|
||||
h = options.height ? h
|
||||
win.browserWindow.setSize(w,h)
|
||||
|
||||
console.log JSON.stringify(options)
|
||||
if options.bounds
|
||||
console.log "------------- SETTING BOUNDS"
|
||||
console.log JSON.stringify(options.bounds)
|
||||
win.browserWindow.setBounds options.bounds
|
||||
|
||||
@_replenishHotWindows()
|
||||
|
||||
return win
|
||||
|
|
|
@ -105,15 +105,18 @@ class FormItem extends React.Component
|
|||
if _.last(label) isnt ":"
|
||||
label = "#{label}:"
|
||||
|
||||
<div className={classes}>
|
||||
<div className="label-area">
|
||||
<label>{label}</label>
|
||||
if @props.type is "hidden"
|
||||
@_renderInput()
|
||||
else
|
||||
<div className={classes}>
|
||||
<div className="label-area">
|
||||
<label>{label}</label>
|
||||
</div>
|
||||
<div className="input-area">
|
||||
{@_renderInput()}
|
||||
{@_renderError()}
|
||||
</div>
|
||||
</div>
|
||||
<div className="input-area">
|
||||
{@_renderInput()}
|
||||
{@_renderError()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
# Since the validity state is something we need to pull off of rendered
|
||||
# DOM nodes we need to bend the React rules a bit and do a
|
||||
|
@ -300,7 +303,9 @@ class GeneratedForm extends React.Component
|
|||
render: =>
|
||||
<form className="generated-form" ref="form">
|
||||
{@_renderHeaderFormError()}
|
||||
{@_renderFieldsets()}
|
||||
<div className="fieldsets">
|
||||
{@_renderFieldsets()}
|
||||
</div>
|
||||
{@_renderHeaderFormError()}
|
||||
<div className="form-footer">
|
||||
<button onClick={@props.onSubmit}>Submit</button>
|
||||
|
|
Loading…
Reference in a new issue