mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
Bugfix v2.x/server and storage provider did not show up after successfully created (#318)
* Fix issue #316 - Server Provider did not show up * Fix issue #317 - Storage Provider did not show up
This commit is contained in:
parent
a11f221619
commit
da7b24640e
@ -34,7 +34,7 @@ public function getWidgets(): array
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
CreateAction::make()
|
||||
CreateAction::make('create')
|
||||
->label('Connect')
|
||||
->icon('heroicon-o-wifi')
|
||||
->modalHeading('Connect to a Server Provider')
|
||||
@ -43,7 +43,11 @@ protected function getHeaderActions(): array
|
||||
->form(Actions\Create::form())
|
||||
->authorize('create', ServerProvider::class)
|
||||
->modalWidth(MaxWidth::Medium)
|
||||
->using(fn (array $data) => Actions\Create::action($data)),
|
||||
->using(function (array $data) {
|
||||
Actions\Create::action($data);
|
||||
|
||||
$this->dispatch('$refresh');
|
||||
}),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
class ServerProvidersList extends Widget
|
||||
{
|
||||
protected $listeners = ['$refresh'];
|
||||
|
||||
protected function getTableQuery(): Builder
|
||||
{
|
||||
return ServerProvider::getByProjectId(auth()->user()->current_project_id);
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
class StorageProvidersList extends Widget
|
||||
{
|
||||
protected $listeners = ['$refresh'];
|
||||
|
||||
protected function getTableQuery(): Builder
|
||||
{
|
||||
return StorageProvider::getByProjectId(auth()->user()->current_project_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user