mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 12:16:45 +00:00
feat(ui): unify team, security, and notification settings layouts
Extract shared settings-layout components and a dedicated team danger-zone page. Enable modal editing for security resources, polish OAuth/API-token controls, and align notification and service configuration UI with the new navigation patterns.
This commit is contained in:
1 parent
5842d77b81
commit
2291c3fa1c
83 files changed
+1585
-597
No files matched your search
@@ -14,6 +14,8 @@ class Show extends Component
|
||||
|
||||
public CloudInitScript $cloudInitScript;
|
||||
|
||||
public bool $modalMode = false;
|
||||
|
||||
public string $name = '';
|
||||
|
||||
public string $script = '';
|
||||
@@ -35,8 +37,9 @@ class Show extends Component
|
||||
];
|
||||
}
|
||||
|
||||
public function mount(string $cloud_init_script_uuid): void
|
||||
public function mount(string $cloud_init_script_uuid, bool $modalMode = false): void
|
||||
{
|
||||
$this->modalMode = $modalMode;
|
||||
try {
|
||||
$this->cloudInitScript = CloudInitScript::ownedByCurrentTeam()
|
||||
->whereUuid($cloud_init_script_uuid)
|
||||
@@ -70,6 +73,7 @@ class Show extends Component
|
||||
]);
|
||||
|
||||
$this->dispatch('success', 'Cloud-init script updated successfully.');
|
||||
$this->dispatch('securityResourceChanged');
|
||||
}
|
||||
|
||||
public function delete(): mixed
|
||||
@@ -87,6 +91,13 @@ class Show extends Component
|
||||
'cloud_init_script_name' => $scriptName,
|
||||
]);
|
||||
|
||||
if ($this->modalMode) {
|
||||
$this->dispatch('securityResourceChanged');
|
||||
$this->dispatch('close-modal');
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
return redirectRoute($this, 'security.cloud-init-scripts');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user