user listing flow updated
This commit is contained in:
@ -311,14 +311,12 @@ class User extends Authenticatable implements HasLocalePreference
|
|||||||
return $actions;
|
return $actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->hasPendingInvitation()) {
|
$actions[] = [
|
||||||
$actions[] = [
|
'title' => trans('general.edit'),
|
||||||
'title' => trans('general.edit'),
|
'icon' => 'edit',
|
||||||
'icon' => 'edit',
|
'url' => route('users.edit', $this->id),
|
||||||
'url' => route('users.edit', $this->id),
|
'permission' => 'update-auth-users',
|
||||||
'permission' => 'update-auth-users',
|
];
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->hasPendingInvitation()) {
|
if ($this->hasPendingInvitation()) {
|
||||||
$actions[] = [
|
$actions[] = [
|
||||||
|
@ -48,15 +48,11 @@
|
|||||||
@foreach($users as $item)
|
@foreach($users as $item)
|
||||||
<x-table.tr href="{{ route('users.edit', $item->id) }}">
|
<x-table.tr href="{{ route('users.edit', $item->id) }}">
|
||||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" override="class">
|
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" override="class">
|
||||||
@if (user()->id != $item->id)
|
<x-index.bulkaction.single
|
||||||
<x-index.bulkaction.single
|
id="{{ $item->id }}"
|
||||||
id="{{ $item->id }}"
|
name="{{ $item->name }}"
|
||||||
name="{{ $item->name }}"
|
:disabled="($item->hasPendingInvitation() || user()->id == $item->id) ? true : false"
|
||||||
:disabled="($item->hasPendingInvitation() || $item->multiplexed) ? true : false"
|
/>
|
||||||
/>
|
|
||||||
@else
|
|
||||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" disabled />
|
|
||||||
@endif
|
|
||||||
</x-table.td>
|
</x-table.td>
|
||||||
|
|
||||||
<x-table.td class="w-4/12 sm:w-5/12">
|
<x-table.td class="w-4/12 sm:w-5/12">
|
||||||
|
Reference in New Issue
Block a user