chore: Adjust user resource navigation sort order and remove developer-only visibility for the trashed filter.
This commit is contained in:
parent
dbd235fcbe
commit
aa6bc55ee0
@ -38,7 +38,7 @@ class UserResource extends Resource
|
|||||||
|
|
||||||
protected static ?string $navigationLabel = 'Pengguna';
|
protected static ?string $navigationLabel = 'Pengguna';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 8;
|
protected static ?int $navigationSort = 1;
|
||||||
|
|
||||||
protected static ?string $recordTitleAttribute = 'name';
|
protected static ?string $recordTitleAttribute = 'name';
|
||||||
|
|
||||||
@ -122,8 +122,7 @@ public static function table(Table $table): Table
|
|||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
TrashedFilter::make()
|
TrashedFilter::make()
|
||||||
->native(false)
|
->native(false),
|
||||||
->visible(fn () => auth()->user()?->hasRole(RoleEnum::DEVELOPER->value)),
|
|
||||||
])
|
])
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make()
|
EditAction::make()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user