mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 18:19:27 +01:00
use tooltip instead of label for reorder action
This commit is contained in:
parent
e4f6100b4d
commit
280bef5251
@ -51,7 +51,7 @@ class PluginResource extends Resource
|
|||||||
->openRecordUrlInNewTab()
|
->openRecordUrlInNewTab()
|
||||||
->reorderable('load_order')
|
->reorderable('load_order')
|
||||||
->authorizeReorder(fn () => auth()->user()->can('update plugin'))
|
->authorizeReorder(fn () => auth()->user()->can('update plugin'))
|
||||||
->reorderRecordsTriggerAction(fn (Action $action, bool $isReordering) => $action->label($isReordering ? trans('admin/plugin.apply_load_order') : trans('admin/plugin.change_load_order')))
|
->reorderRecordsTriggerAction(fn (Action $action, bool $isReordering) => $action->hiddenLabel()->tooltip($isReordering ? trans('admin/plugin.apply_load_order') : trans('admin/plugin.change_load_order')))
|
||||||
->defaultSort('load_order')
|
->defaultSort('load_order')
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user