Skip to content

Commit 9d07136

Browse files
committed
refresh content edit/view page upon lang update
1 parent 224500f commit 9d07136

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Livewire/ContentSidebar.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class ContentSidebar extends BaseContentTreeNode
3131
'updatedActiveLocale' => '$refresh',
3232
];
3333

34+
public function updatedActiveLocale()
35+
{
36+
// Notify the parent page / other listeners to change their locale
37+
$this->dispatch('changeActiveLocale', $this->activeLocale);
38+
}
39+
3440
protected function queryString()
3541
{
3642
return [

0 commit comments

Comments
 (0)