Skip to content

Commit

Permalink
Merge pull request #12860 from dev-idkwhoami/fix/visual-bug-when-usin…
Browse files Browse the repository at this point in the history
…g-select-current-page-only-with-grouping
  • Loading branch information
danharrin committed May 20, 2024
1 parent 8d39d33 commit 3fb5cbe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/lang/id/unsaved-changes-alert.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return [

'body' => 'Anda memiliki perubahan yang belum disimpan. Apakah Anda yakin ingin meninggalkan halaman ini?',

];
12 changes: 12 additions & 0 deletions src/Panel/Concerns/HasComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,22 @@ protected function registerLivewireComponents(): void
}
}

if ($this->hasProfile() && is_subclass_of($profilePageComponent = $this->getProfilePage(), Component::class)) {
$this->queueLivewireComponentForRegistration($profilePageComponent);
}

if ($this->hasRegistration() && is_subclass_of($registrationRouteAction = $this->getRegistrationRouteAction(), Component::class)) {
$this->queueLivewireComponentForRegistration($registrationRouteAction);
}

if ($this->hasTenantRegistration() && is_subclass_of($tenantRegistrationComponent = $this->getTenantRegistrationPage(), Component::class)) {
$this->queueLivewireComponentForRegistration($tenantRegistrationComponent);
}

if ($this->hasTenantProfile() && is_subclass_of($tenantProfileComponent = $this->getTenantProfilePage(), Component::class)) {
$this->queueLivewireComponentForRegistration($tenantProfileComponent);
}

foreach ($this->getResources() as $resource) {
foreach ($resource::getPages() as $pageRegistration) {
$this->queueLivewireComponentForRegistration($pageRegistration->getPage());
Expand Down

0 comments on commit 3fb5cbe

Please # to comment.