Skip to content

Commit

Permalink
[TASK] Add hint for disabled API in module
Browse files Browse the repository at this point in the history
  • Loading branch information
flossels committed Nov 23, 2020
1 parent 680bd00 commit 13f7db2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Resources/Private/Language/de.locallang_mod.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@
<trans-unit id="properties.button.save">
<target>Speichern</target>
</trans-unit>
<trans-unit id="properties.infobox.api.title">
<target>Verfügbarkeit von Auth0-Benutzerdaten</target>
</trans-unit>
<trans-unit id="properties.infobox.api.content">
<target>Bitte beachte, dass möglicherweise nicht alle Benutzerdaten (insbesondere die user und app Metadaten) verfügbar sind, wenn die Anwendung die Verwendung der API deaktiviert hat.</target>
</trans-unit>

<trans-unit id="message.application.deleted.title">
<target>Applikation gelöscht!</target>
Expand Down
6 changes: 6 additions & 0 deletions Resources/Private/Language/locallang_mod.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@
<trans-unit id="properties.button.save">
<source>Save</source>
</trans-unit>
<trans-unit id="properties.infobox.api.title">
<source>Availability of Auth0 User Data</source>
</trans-unit>
<trans-unit id="properties.infobox.api.content">
<source>Please note that not all data (especially the user and app meta data) may be available if your application has disabled the use of the API.</source>
</trans-unit>

<trans-unit id="message.application.deleted.title">
<source>Application Removed!</source>
Expand Down
10 changes: 8 additions & 2 deletions Resources/Private/Templates/Property/List.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{namespace be=TYPO3\CMS\Backend\ViewHelpers}
{namespace core=TYPO3\CMS\Core\ViewHelpers}
<html xmlns:be="https://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
xmlns:core="https://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Backend" />

<f:section name="content">
Expand All @@ -14,6 +15,10 @@ <h1><f:translate key="LLL:EXT:auth0/Resources/Private/Language/locallang_mod.xlf
</f:be.infobox>
</f:if>

<f:be.infobox title="{f:translate(key: 'LLL:EXT:auth0/Resources/Private/Language/locallang_mod.xlf:properties.infobox.api.title')}">
<p>{f:translate(key: 'LLL:EXT:auth0/Resources/Private/Language/locallang_mod.xlf:properties.infobox.api.content')}</p>
</f:be.infobox>

<f:if condition="{extensionConfiguration.enableFrontendLogin}">
<h2>
<core:icon identifier="status-user-frontend" size="large"/>
Expand Down Expand Up @@ -48,3 +53,4 @@ <h3><f:translate key="LLL:EXT:auth0/Resources/Private/Language/locallang_mod.xlf
<f:render partial="Backend/PropertyTable" arguments="{configuration: yamlConfiguration.properties.be_users.app_metadata, table: 'be_users', type: 'app_metadata'}"/>
</f:if>
</f:section>
</html>

0 comments on commit 13f7db2

Please sign in to comment.