Email supporter button now navigates to "mailto:supporter@email.address"
This commit is contained in:
parent
e467e1a0ba
commit
9d58584109
2 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,6 @@ const init = _ => {
|
|||
|
||||
state.supporter$ = flyd.merge(supporterResp$, flyd.stream({}))
|
||||
|
||||
state.composeOrReply$ = flyd.merge(state.clickComposing$, state.threadId$)
|
||||
|
||||
|
||||
state.offsiteDonationForm = offsiteDonationForm.init(state)
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ const button = (text, stream) =>
|
|||
const view = state =>
|
||||
h('section.timeline-actions.u-padding--10', [
|
||||
button('Note', state.newNote$)
|
||||
, button('Email', () => { window.open(`mailto:${state.supporter$().email}`)})
|
||||
, button('Donation', () => appl.open_donation_modal(state.supporter$().id,
|
||||
() => {state.offsiteDonationForm.saved$(Math.random())}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue