mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1568 alabilirim.com trash and pending error
This commit is contained in:
parent
aca3e51d5a
commit
695fed2e39
@ -41,13 +41,15 @@ class AddViewAdsButton
|
||||
protected function addViewAdsButton(UserTableBuilder $builder)
|
||||
{
|
||||
$buttons = $builder->getButtons();
|
||||
$dropdown = array_merge($buttons['settings']['dropdown'], [
|
||||
"ads" => [
|
||||
"text" => trans('visiosoft.theme.defaultadmin::button.view_ads'),
|
||||
"href" => "admin/advs?filter_User={entry.id}"
|
||||
]
|
||||
]);
|
||||
$buttons['settings']['dropdown'] = $dropdown;
|
||||
$builder->setButtons($buttons);
|
||||
if (isset($buttons['settings'])) {
|
||||
$dropdown = array_merge($buttons['settings']['dropdown'], [
|
||||
"ads" => [
|
||||
"text" => trans('visiosoft.theme.defaultadmin::button.view_ads'),
|
||||
"href" => "admin/advs?filter_User={entry.id}"
|
||||
]
|
||||
]);
|
||||
$buttons['settings']['dropdown'] = $dropdown;
|
||||
$builder->setButtons($buttons);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user