apply first submission modal changes (#584)
* apply first submission modal changes * Apply changes * fix submiussions url * fix lint * Fix nuxt versions issues * Add fixed version of nitropack * Attempt to fix build --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -153,6 +153,15 @@ class Form extends Model implements CachableAttributes
|
||||
return front_url('/forms/' . $this->slug);
|
||||
}
|
||||
|
||||
public function getSubmissionsUrlAttribute()
|
||||
{
|
||||
if ($this->custom_domain) {
|
||||
return 'https://' . $this->custom_domain . '/forms/' . $this->slug . '/show/submissions';
|
||||
}
|
||||
|
||||
return front_url('/forms/' . $this->slug . '/show/submissions');
|
||||
}
|
||||
|
||||
public function getEditUrlAttribute()
|
||||
{
|
||||
return front_url('/forms/' . $this->slug . '/show');
|
||||
|
||||
Reference in New Issue
Block a user