Update success messages

This commit is contained in:
Andras Bacsai
2024-02-22 14:53:42 +01:00
parent 592221b4bf
commit c7218f2856
32 changed files with 67 additions and 57 deletions

View File

@@ -120,9 +120,9 @@ class All extends Component
}
}
if ($isPreview) {
$this->dispatch('success', 'Preview environment variables updated successfully.');
$this->dispatch('success', 'Preview environment variables updated.');
} else {
$this->dispatch('success', 'Environment variables updated successfully.');
$this->dispatch('success', 'Environment variables updated.');
}
$this->refreshEnvs();
}

View File

@@ -90,7 +90,7 @@ class Show extends Component
}
$this->serialize();
$this->env->save();
$this->dispatch('success', 'Environment variable updated successfully.');
$this->dispatch('success', 'Environment variable updated.');
$this->dispatch('refreshEnvs');
} catch (\Exception $e) {
return handleError($e);

View File

@@ -52,7 +52,7 @@ class ResourceLimits extends Component
}
$this->validate();
$this->resource->save();
$this->dispatch('success', 'Resource limits updated successfully.');
$this->dispatch('success', 'Resource limits updated.');
} catch (\Throwable $e) {
return handleError($e, $this);
}

View File

@@ -48,7 +48,7 @@ class All extends Component
}
$task->save();
$this->refreshTasks();
$this->dispatch('success', 'Scheduled task added successfully.');
$this->dispatch('success', 'Scheduled task added.');
} catch (\Throwable $e) {
return handleError($e, $this);
}

View File

@@ -49,7 +49,7 @@ class Show extends Component
{
$this->validate();
$this->task->save();
$this->dispatch('success', 'Scheduled task updated successfully.');
$this->dispatch('success', 'Scheduled task updated.');
$this->dispatch('refreshTasks');
}