Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5f0b3edf
Commit
5f0b3edf
authored
Mar 28, 2022
by
minahilnichols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add redirect logic and fix specs
parent
105d88f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ee/app/assets/javascripts/registrations/components/company_form.vue
...ets/javascripts/registrations/components/company_form.vue
+1
-1
ee/app/controllers/trials_controller.rb
ee/app/controllers/trials_controller.rb
+2
-1
ee/app/views/registrations/company/new.html.haml
ee/app/views/registrations/company/new.html.haml
+1
-1
No files found.
ee/app/assets/javascripts/registrations/components/company_form.vue
View file @
5f0b3edf
...
...
@@ -33,7 +33,7 @@ export default {
trial
:
{
type
:
Boolean
,
required
:
false
,
default
:
fals
e
,
default
:
tru
e
,
},
},
data
()
{
...
...
ee/app/controllers/trials_controller.rb
View file @
5f0b3edf
...
...
@@ -36,7 +36,7 @@ class TrialsController < ApplicationController
render
(
:new
)
&&
return
unless
@result
[
:success
]
if
params
[
:onboarding
]
==
'true'
if
params
[
:onboarding
]
==
'true'
||
params
[
:trial
]
==
'true'
redirect_to
(
new_users_sign_up_groups_project_path
(
url_params
.
merge
(
trial_onboarding_flow:
true
)))
elsif
@namespace
=
helpers
.
only_trialable_group_namespace
params
[
:namespace_id
]
=
@namespace
.
id
...
...
@@ -50,6 +50,7 @@ class TrialsController < ApplicationController
result
=
GitlabSubscriptions
::
CreateHandRaiseLeadService
.
new
.
execute
(
hand_raise_lead_params
)
if
result
.
success?
redirect_to
new_users_sign_up_groups_project_path
(
skip_trial:
true
)
if
params
.
has_key?
(
:trial
)
head
200
else
render_403
...
...
ee/app/views/registrations/company/new.html.haml
View file @
5f0b3edf
...
...
@@ -5,7 +5,7 @@
%h2
.gl-pb-5.gl-my-0
=
_
(
"About your company"
)
#js-company-registration-form
{
data:
{
trial:
params
[
:trial
]
==
'true'
,
create_lead_path:
create_lead_trials_path
}
}
#js-company-registration-form
{
data:
create_company_form_data
}
.col-md-4.gl-display-inline-flex.gl-vertical-align-middle
=
image_tag
'illustrations/saas-trial-illustration.svg'
,
alt:
''
,
class:
'gl-display-none d-md-inline gl-w-full'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment