@@ -382,20 +382,20 @@ public static function getPublishAction(): Action
382382 $ livewire ->data ['translation_status ' ] = 'published ' ;
383383 $ livewire ->save ();
384384
385- if (method_exists ($ livewire ->record , 'translateOrNew ' )) {
386- $ locale = $ livewire ->lang ?? app ()->getLocale ();
387- $ translation = $ livewire ->record ->translateOrNew ($ locale );
388- $ translation ->published_at = now ();
389- $ translation ->publishedBy ()->associate (auth ()->user ());
390- $ translation ->to_publish_at = null ;
391- $ translation ->unpublished_at = null ;
392- $ translation ->to_unpublish_at = null ;
393- $ translation ->save ();
394- }
385+ if (method_exists ($ livewire ->record , 'translateOrNew ' )) {
386+ $ locale = $ livewire ->lang ?? app ()->getLocale ();
387+ $ translation = $ livewire ->record ->translateOrNew ($ locale );
388+ $ translation ->published_at = now ();
389+ $ translation ->publishedBy ()->associate (auth ()->user ());
390+ $ translation ->to_publish_at = null ;
391+ $ translation ->unpublished_at = null ;
392+ $ translation ->to_unpublish_at = null ;
393+ $ translation ->save ();
394+ }
395395
396396 $ url = static ::getUrl ('view ' , ['record ' => $ livewire ->record ]);
397397 if (isset ($ livewire ->lang )) {
398- $ url .= '?lang= ' . $ livewire ->lang ;
398+ $ url .= '?lang= ' . $ livewire ->lang ;
399399 }
400400 $ livewire ->redirect ($ url );
401401 })
@@ -417,10 +417,10 @@ public static function getSaveAndCreateAnotherAction(): Action
417417 ->button ()
418418 ->action (function ($ livewire ): void {
419419 $ livewire instanceof CreateRecord ? $ livewire ->create () : $ livewire ->save ();
420-
420+
421421 $ url = static ::getUrl ('create ' );
422422 if (isset ($ livewire ->lang )) {
423- $ url .= '?lang= ' . $ livewire ->lang ;
423+ $ url .= '?lang= ' . $ livewire ->lang ;
424424 }
425425 $ livewire ->redirect ($ url );
426426 })
0 commit comments