File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
client/components/open/forms/components Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public function toArray($request)
26
26
'views_count ' => $ this ->views_count ,
27
27
'submissions_count ' => $ this ->submissions_count ,
28
28
'redirect_url ' => $ this ->redirect_url ,
29
+ 'submissions_url ' => $ this ->submissions_url ,
29
30
'database_fields_update ' => $ this ->database_fields_update ,
30
31
'cleanings ' => $ this ->getCleanigns (),
31
32
'can_be_indexed ' => $ this ->can_be_indexed ,
Original file line number Diff line number Diff line change @@ -152,6 +152,15 @@ public function getShareUrlAttribute()
152
152
153
153
return front_url ('/forms/ ' . $ this ->slug );
154
154
}
155
+
156
+ public function getSubmissionsUrlAttribute ()
157
+ {
158
+ if ($ this ->custom_domain ) {
159
+ return 'https:// ' . $ this ->custom_domain . '/forms/ ' . $ this ->slug . '/show/submissions ' ;
160
+ }
161
+
162
+ return front_url ('/forms/ ' . $ this ->slug . '/show/submissions ' );
163
+ }
155
164
156
165
public function getEditUrlAttribute ()
157
166
{
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ const helpLinks = computed(() => {
105
105
})
106
106
107
107
const trackOpenDbClick = () => {
108
- const submissionsUrl = ` /forms/ ${ props .form .slug } /submissions `
108
+ const submissionsUrl = props .form .submissions_url
109
109
window .open (submissionsUrl, ' _blank' )
110
110
amplitude .logEvent (' form_first_submission_modal_open_db_click' )
111
111
}
Original file line number Diff line number Diff line change 47
47
const { copy } = useClipboard ()
48
48
49
49
const share_url = computed (() => {
50
- return props .extraQueryParam
51
- ? ` ${ props .form .share_url } ?${ props .extraQueryParam } `
52
- : props .form .share_url + props .extraQueryParam
50
+ if (props .extraQueryParam ) {
51
+ return ` ${ props .form .share_url } ?${ props .extraQueryParam } `
52
+ }
53
+ return props .form .share_url
53
54
})
54
55
55
56
function copyToClipboard () {
You can’t perform that action at this time.
0 commit comments