[COMPONENT][Person][PLUGIN][WebHooks] Rename person settings section from 'others' to 'api'
This commit is contained in:
parent
f6a8f44420
commit
4e2f6545ec
|
@ -34,8 +34,8 @@
|
||||||
{{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
|
{{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'others') %}
|
{% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'api') %}
|
||||||
{{ macros.settings_details_container('Others', 'Other settings (plugins, etc.)', 'settings-other-details', other_tabs, _context) }}
|
{{ macros.settings_details_container('API', 'API settings', 'settings-other-details', other_tabs, _context) }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -50,7 +50,7 @@ class WebHooks extends Plugin
|
||||||
|
|
||||||
public function onPopulateSettingsTabs(Request $request, string $section, array &$tabs): bool
|
public function onPopulateSettingsTabs(Request $request, string $section, array &$tabs): bool
|
||||||
{
|
{
|
||||||
if ($section === 'others') {
|
if ($section === 'api') {
|
||||||
$tabs[] = [
|
$tabs[] = [
|
||||||
'title' => 'Web Hooks',
|
'title' => 'Web Hooks',
|
||||||
'desc' => 'Add hooks that run when an internal event occurs, allowing your third party resource to react',
|
'desc' => 'Add hooks that run when an internal event occurs, allowing your third party resource to react',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user