Fix styling

This commit is contained in:
Thijmen
2024-06-10 20:43:34 +00:00
committed by github-actions[bot]
parent 41fb6a1fc9
commit d86274cc37
429 changed files with 5307 additions and 2831 deletions

View File

@@ -8,6 +8,7 @@ use Livewire\Component;
class Swarm extends Component
{
public Application $application;
public string $swarm_placement_constraints = '';
protected $rules = [
@@ -15,12 +16,16 @@ class Swarm extends Component
'application.swarm_placement_constraints' => 'nullable',
'application.settings.is_swarm_only_worker_nodes' => 'required',
];
public function mount() {
public function mount()
{
if ($this->application->swarm_placement_constraints) {
$this->swarm_placement_constraints = base64_decode($this->application->swarm_placement_constraints);
}
}
public function instantSave() {
public function instantSave()
{
try {
$this->validate();
$this->application->settings->save();
@@ -29,7 +34,9 @@ class Swarm extends Component
return handleError($e, $this);
}
}
public function submit() {
public function submit()
{
try {
$this->validate();
if ($this->swarm_placement_constraints) {
@@ -44,6 +51,7 @@ class Swarm extends Component
return handleError($e, $this);
}
}
public function render()
{
return view('livewire.project.application.swarm');