Prevent deletion of options that have children attached to them.

closes #562
This commit is contained in:
Dane Everitt
2017-09-30 12:54:09 -05:00
parent d5bf8734ef
commit 1216f950e2
4 changed files with 52 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ return [
'delete_has_servers' => 'A service option with active servers attached to it cannot be deleted from the Panel.',
'invalid_copy_id' => 'The service option selected for copying a script from either does not exist, or is copying a script itself.',
'must_be_child' => 'The "Copy Settings From" directive for this option must be a child option for the selected service.',
'has_children' => 'This service option is a parent to one or more other options. Please delete those options before deleting this option.',
],
'variables' => [
'env_not_unique' => 'The environment variable :name must be unique to this service option.',