fix env deletion and sorting of locked envs

This commit is contained in:
ayntk-ai
2024-08-12 14:44:18 +02:00
parent 1d7c833b7c
commit 122491808c
2 changed files with 17 additions and 14 deletions

View File

@@ -129,9 +129,10 @@ class Show extends Component
{
try {
$this->env->delete();
$this->dispatch('refreshEnvs');
$this->dispatch('environmentVariableDeleted');
$this->dispatch('success', 'Environment variable deleted successfully.');
} catch (\Exception $e) {
return handleError($e);
}
}
}
}