fix: dir mounts should have proper dirs
This commit is contained in:
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user