fix: dir mounts should have proper dirs
This commit is contained in:
parent
3269ca3eb8
commit
8133a8b770
1 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ class Add extends Component
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->file_storage_directory_source = application_configuration_dir()."/{$this->resource->uuid}";
|
if (str($this->resource->getMorphClass())->contains('Standalone')) {
|
||||||
|
$this->file_storage_directory_source = database_configuration_dir()."/{$this->resource->uuid}";
|
||||||
|
} else {
|
||||||
|
$this->file_storage_directory_source = application_configuration_dir()."/{$this->resource->uuid}";
|
||||||
|
}
|
||||||
$this->uuid = $this->resource->uuid;
|
$this->uuid = $this->resource->uuid;
|
||||||
$this->parameters = get_route_parameters();
|
$this->parameters = get_route_parameters();
|
||||||
if (data_get($this->parameters, 'application_uuid')) {
|
if (data_get($this->parameters, 'application_uuid')) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue