mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
fix user-stack showing wrong name in dialog title
This commit is contained in:
parent
affb0d11f7
commit
90aeecc6d8
@ -13,6 +13,8 @@ class UserStack extends Component
|
|||||||
#[Reactive]
|
#[Reactive]
|
||||||
public $users;
|
public $users;
|
||||||
|
|
||||||
|
public string $parentUserName;
|
||||||
|
|
||||||
public $authFollowingIds = [];
|
public $authFollowingIds = [];
|
||||||
|
|
||||||
public string $label = 'Users';
|
public string $label = 'Users';
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
{{-- view all dialog --}}
|
{{-- view all dialog --}}
|
||||||
<x-dialog-modal wire:model.live="viewAll">
|
<x-dialog-modal wire:model.live="viewAll">
|
||||||
<x-slot name="title">
|
<x-slot name="title">
|
||||||
<h2 class="text-2xl">{{$user->name}}'s {{$label}}</h2>
|
<h2 class="text-2xl">{{$parentUserName}}'s {{$label}}</h2>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="content">
|
<x-slot name="content">
|
||||||
|
@ -123,12 +123,12 @@
|
|||||||
@endswitch
|
@endswitch
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col justify-center items-center">
|
<div class="flex flex-col justify-top items-center">
|
||||||
<div class="flex w-full max-w-sm">
|
<div class="flex w-full max-w-sm">
|
||||||
<livewire:user-stack :label="__('Followers')" :users="$followers"/>
|
<livewire:user-stack :parentUserName="$user->name" :label="__('Followers')" :users="$followers"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex w-full max-w-sm">
|
<div class="flex w-full max-w-sm">
|
||||||
<livewire:user-stack :label="__('Following')" :users="$following"/>
|
<livewire:user-stack :parentUserName="$user->name" :label="__('Following')" :users="$following"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user