stonk
This commit is contained in:
parent
0841409e50
commit
3bc73afb88
|
|
@ -2864,7 +2864,7 @@ module JamRuby
|
|||
|
||||
def has_support?
|
||||
# early exit if in trial (excepting credit card and no Admin Override)
|
||||
return true if !subscription_trial_ended? || subscription_sync_code == 'in_trial'
|
||||
return true if !subscription_trial_ended?
|
||||
|
||||
# let admins test feature without subscription
|
||||
return true if admin
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ window.SupportPage = React.createClass({
|
|||
|
||||
// You just need to add '&disable[fieldName]=true' or '&disable[custom_field][fieldName]=true' depending on whether the field is default or custom.
|
||||
|
||||
if(gon.in_trial) {
|
||||
display = 'Trial'
|
||||
}
|
||||
var src = `https://jamkazam.freshdesk.com/widgets/feedback_widget/new?&helpdesk_ticket[requester]=${encodeURIComponent(gon.email)}&disable[requester]=true&helpdesk_ticket[custom_field][cf_plan_1596882]=${encodeURIComponent(display)}&disable[custom_field][cf_plan_1596882]=true&widgetType=embedded&formTitle=JamKazam+Support&submitTitle=Send+Feedback&submitThanks=Thank+you+for+your+message.+We+will+use+our+best+efforts+to+reply+within+24+hours.`
|
||||
|
||||
// helpdesk_ticket_cf_plan_1596882
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class SupportsController < ApplicationController
|
|||
end
|
||||
gon.has_support = current_user.has_support?
|
||||
gon.email = current_user.email
|
||||
gon.in_trial = !current_user.subscription_trial_ended? || current_user.subscription_sync_code == 'in_trial'
|
||||
gon.in_trial = !current_user.subscription_trial_ended?
|
||||
gon.plan_code = current_user.subscription_plan_code
|
||||
|
||||
@title = "Help Desk"
|
||||
|
|
|
|||
Loading…
Reference in New Issue