mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 14:39:35 +01:00
add translations to reorder
This commit is contained in:
parent
445cc7c88c
commit
1b248ccec2
@ -49,7 +49,9 @@ class PluginResource extends Resource
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->openRecordUrlInNewTab()
|
->openRecordUrlInNewTab()
|
||||||
->reorderable('load_order', fn () => auth()->user()->can('update plugin'))
|
->reorderable('load_order')
|
||||||
|
->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')))
|
||||||
->defaultSort('load_order')
|
->defaultSort('load_order')
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name')
|
||||||
|
|||||||
@ -21,6 +21,8 @@ return [
|
|||||||
'from_file' => 'From File',
|
'from_file' => 'From File',
|
||||||
'from_url' => 'From URL',
|
'from_url' => 'From URL',
|
||||||
'all' => 'All',
|
'all' => 'All',
|
||||||
|
'change_load_order' => 'Change load order',
|
||||||
|
'apply_load_order' => 'Apply load order',
|
||||||
|
|
||||||
'enable_theme_modal' => [
|
'enable_theme_modal' => [
|
||||||
'heading' => 'Theme already enabled',
|
'heading' => 'Theme already enabled',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user