mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 09:38:37 +02:00
Fix gap for profile repeaters (api keys, ssh keys, activity logs) (#1613)
This commit is contained in:
parent
b5ebd544f4
commit
f31aa78f6f
@ -322,6 +322,7 @@ class EditProfile extends BaseEditProfile
|
|||||||
Section::make(trans('profile.api_keys'))->columnSpan(2)->schema([
|
Section::make(trans('profile.api_keys'))->columnSpan(2)->schema([
|
||||||
Repeater::make('api_keys')
|
Repeater::make('api_keys')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
->inlineLabel(false)
|
||||||
->relationship('apiKeys')
|
->relationship('apiKeys')
|
||||||
->addable(false)
|
->addable(false)
|
||||||
->itemLabel(fn ($state) => $state['identifier'])
|
->itemLabel(fn ($state) => $state['identifier'])
|
||||||
@ -406,6 +407,7 @@ class EditProfile extends BaseEditProfile
|
|||||||
Section::make(trans('profile.ssh_keys'))->columnSpan(2)->schema([
|
Section::make(trans('profile.ssh_keys'))->columnSpan(2)->schema([
|
||||||
Repeater::make('ssh_keys')
|
Repeater::make('ssh_keys')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
->inlineLabel(false)
|
||||||
->relationship('sshKeys')
|
->relationship('sshKeys')
|
||||||
->addable(false)
|
->addable(false)
|
||||||
->itemLabel(fn ($state) => $state['name'])
|
->itemLabel(fn ($state) => $state['name'])
|
||||||
@ -445,14 +447,17 @@ class EditProfile extends BaseEditProfile
|
|||||||
->icon('tabler-history')
|
->icon('tabler-history')
|
||||||
->schema([
|
->schema([
|
||||||
Repeater::make('activity')
|
Repeater::make('activity')
|
||||||
->label('')
|
->hiddenLabel()
|
||||||
|
->inlineLabel(false)
|
||||||
->deletable(false)
|
->deletable(false)
|
||||||
->addable(false)
|
->addable(false)
|
||||||
->relationship(null, function (Builder $query) {
|
->relationship(null, function (Builder $query) {
|
||||||
$query->orderBy('timestamp', 'desc');
|
$query->orderBy('timestamp', 'desc');
|
||||||
})
|
})
|
||||||
->schema([
|
->schema([
|
||||||
Placeholder::make('activity!')->label('')->content(fn (ActivityLog $log) => new HtmlString($log->htmlable())),
|
Placeholder::make('log')
|
||||||
|
->hiddenLabel()
|
||||||
|
->content(fn (ActivityLog $log) => new HtmlString($log->htmlable())),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user