[COMPONENT][Person][PLUGIN][WebHooks] Rename person settings section from 'others' to 'api'

This commit is contained in:
Hugo Sales 2022-03-31 00:16:54 +01:00
parent f6a8f44420
commit 4e2f6545ec
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 3 additions and 3 deletions

View File

@ -34,8 +34,8 @@
{{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
</li>
<li>
{% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'others') %}
{{ macros.settings_details_container('Others', 'Other settings (plugins, etc.)', 'settings-other-details', other_tabs, _context) }}
{% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'api') %}
{{ macros.settings_details_container('API', 'API settings', 'settings-other-details', other_tabs, _context) }}
</li>
</ul>
</nav>

View File

@ -50,7 +50,7 @@ class WebHooks extends Plugin
public function onPopulateSettingsTabs(Request $request, string $section, array &$tabs): bool
{
if ($section === 'others') {
if ($section === 'api') {
$tabs[] = [
'title' => 'Web Hooks',
'desc' => 'Add hooks that run when an internal event occurs, allowing your third party resource to react',