Fix styling
This commit is contained in:
committed by
github-actions[bot]
parent
41fb6a1fc9
commit
d86274cc37
@@ -9,9 +9,13 @@ use Visus\Cuid2\Cuid2;
|
||||
class Danger extends Component
|
||||
{
|
||||
public $resource;
|
||||
|
||||
public $projectUuid;
|
||||
|
||||
public $environmentName;
|
||||
|
||||
public bool $delete_configurations = true;
|
||||
|
||||
public ?string $modalId = null;
|
||||
|
||||
public function mount()
|
||||
@@ -21,15 +25,17 @@ class Danger extends Component
|
||||
$this->projectUuid = data_get($parameters, 'project_uuid');
|
||||
$this->environmentName = data_get($parameters, 'environment_name');
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
try {
|
||||
// $this->authorize('delete', $this->resource);
|
||||
$this->resource->delete();
|
||||
DeleteResourceJob::dispatch($this->resource, $this->delete_configurations);
|
||||
|
||||
return redirect()->route('project.resource.index', [
|
||||
'project_uuid' => $this->projectUuid,
|
||||
'environment_name' => $this->environmentName
|
||||
'environment_name' => $this->environmentName,
|
||||
]);
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
|
||||
Reference in New Issue
Block a user