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:
Favour Olayinka
2024-10-21 16:41:20 +01:00
committed by GitHub
parent 469031c9ec
commit ef404e1d1e
9 changed files with 7930 additions and 7162 deletions

View File

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