Email supporter button now navigates to "mailto:supporter@email.address"

This commit is contained in:
Eric Schultz 2019-01-30 16:36:44 -06:00
parent e467e1a0ba
commit 9d58584109
2 changed files with 1 additions and 2 deletions

View file

@ -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)

View file

@ -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())}
)