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:
Andras Bacsai committed 2026-08-05 16:24:31 +02:00
1 parent 5842d77b81
commit 2291c3fa1c
83 files changed
+1585 -597

No files matched your search

+12 -1
View File
@@ -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');
}