This commit is contained in:
Saeed Vaziry
2024-10-13 12:33:12 +02:00
parent 386d8e73a7
commit 224e0ac2b0
49 changed files with 3668 additions and 766 deletions

View File

@ -54,15 +54,6 @@ public function getWidgets(): array
if ($this->site->isInstalling()) {
$widgets[] = [Widgets\Installing::class, ['site' => $this->site]];
if (auth()->user()->can('viewAny', [ServerLog::class, $this->server])) {
$widgets[] = [
LogsList::class, [
'server' => $this->server,
'site' => $this->site,
'label' => 'Logs',
],
];
}
}
if ($this->site->isReady()) {
@ -71,6 +62,16 @@ public function getWidgets(): array
}
}
if (auth()->user()->can('viewAny', [ServerLog::class, $this->server])) {
$widgets[] = [
LogsList::class, [
'server' => $this->server,
'site' => $this->site,
'label' => 'Logs',
],
];
}
return $widgets;
}
@ -96,7 +97,9 @@ public function getHeaderActions(): array
$actionsGroup[] = $this->dotEnvAction();
}
$actionsGroup[] = $this->branchAction();
if ($this->site->sourceControl) {
$actionsGroup[] = $this->branchAction();
}
$actions[] = ActionGroup::make($actionsGroup)
->button()