web/admin: fix expression info not being localised
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ed18e623db
commit
a7f751f3b3
|
@ -137,4 +137,3 @@ class UserViewSet(ModelViewSet):
|
|||
reverse_lazy("authentik_flows:default-recovery") + f"?{querystring}"
|
||||
)
|
||||
return Response({"link": link})
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import { DEFAULT_CONFIG } from "../../api/Config";
|
|||
@customElement("ak-charts-user")
|
||||
export class UserChart extends AKChart<UserMetrics> {
|
||||
|
||||
@property()
|
||||
@property({type: Number})
|
||||
userId?: number;
|
||||
|
||||
apiRequest(): Promise<UserMetrics> {
|
||||
|
|
|
@ -6,6 +6,12 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: @lingui/cli\n"
|
||||
"Language: en\n"
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#: src/pages/policies/BoundPoliciesList.ts:54
|
||||
msgid "-"
|
||||
|
@ -1129,6 +1135,13 @@ msgstr "Export"
|
|||
msgid "Expression"
|
||||
msgstr "Expression"
|
||||
|
||||
#: src/pages/policies/expression/ExpressionPolicyForm.ts:78
|
||||
#: src/pages/property-mappings/PropertyMappingLDAPForm.ts:70
|
||||
#: src/pages/property-mappings/PropertyMappingSAMLForm.ts:80
|
||||
#: src/pages/property-mappings/PropertyMappingScopeForm.ts:77
|
||||
msgid "Expression using Python."
|
||||
msgstr "Expression using Python."
|
||||
|
||||
#: src/pages/applications/ApplicationListPage.ts:31
|
||||
msgid "External Applications which use authentik as Identity-Provider, utilizing protocols like OAuth2 and SAML."
|
||||
msgstr "External Applications which use authentik as Identity-Provider, utilizing protocols like OAuth2 and SAML."
|
||||
|
@ -2420,6 +2433,13 @@ msgstr "Search..."
|
|||
msgid "Secret:"
|
||||
msgstr "Secret:"
|
||||
|
||||
#: src/pages/policies/expression/ExpressionPolicyForm.ts:80
|
||||
#: src/pages/property-mappings/PropertyMappingLDAPForm.ts:72
|
||||
#: src/pages/property-mappings/PropertyMappingSAMLForm.ts:82
|
||||
#: src/pages/property-mappings/PropertyMappingScopeForm.ts:79
|
||||
msgid "See documentation for a list of all variables."
|
||||
msgstr "See documentation for a list of all variables."
|
||||
|
||||
#: src/elements/table/Table.ts:215
|
||||
msgid "Select all rows"
|
||||
msgstr "Select all rows"
|
||||
|
|
|
@ -6,6 +6,12 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: @lingui/cli\n"
|
||||
"Language: pseudo-LOCALE\n"
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#: src/pages/policies/BoundPoliciesList.ts:54
|
||||
msgid "-"
|
||||
|
@ -1125,6 +1131,13 @@ msgstr ""
|
|||
msgid "Expression"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/policies/expression/ExpressionPolicyForm.ts:78
|
||||
#: src/pages/property-mappings/PropertyMappingLDAPForm.ts:70
|
||||
#: src/pages/property-mappings/PropertyMappingSAMLForm.ts:80
|
||||
#: src/pages/property-mappings/PropertyMappingScopeForm.ts:77
|
||||
msgid "Expression using Python."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/applications/ApplicationListPage.ts:31
|
||||
msgid "External Applications which use authentik as Identity-Provider, utilizing protocols like OAuth2 and SAML."
|
||||
msgstr ""
|
||||
|
@ -2416,6 +2429,13 @@ msgstr ""
|
|||
msgid "Secret:"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/policies/expression/ExpressionPolicyForm.ts:80
|
||||
#: src/pages/property-mappings/PropertyMappingLDAPForm.ts:72
|
||||
#: src/pages/property-mappings/PropertyMappingSAMLForm.ts:82
|
||||
#: src/pages/property-mappings/PropertyMappingScopeForm.ts:79
|
||||
msgid "See documentation for a list of all variables."
|
||||
msgstr ""
|
||||
|
||||
#: src/elements/table/Table.ts:215
|
||||
msgid "Select all rows"
|
||||
msgstr ""
|
||||
|
|
|
@ -72,7 +72,10 @@ export class ExpressionPolicyForm extends Form<ExpressionPolicy> {
|
|||
<ak-codemirror mode="python" value="${ifDefined(this.policy?.expression)}">
|
||||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
Expression using Python. See <a href="https://goauthentik.io/docs/property-mappings/expression/">here</a> for a list of all variables.
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
</div>
|
||||
|
|
|
@ -64,7 +64,10 @@ export class PropertyMappingLDAPForm extends Form<LDAPPropertyMapping> {
|
|||
<ak-codemirror mode="python" value="${ifDefined(this.mapping?.expression)}">
|
||||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
Expression using Python. See <a href="https://goauthentik.io/docs/property-mappings/expression/">here</a> for a list of all variables.
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
</form>`;
|
||||
|
|
|
@ -74,7 +74,10 @@ export class PropertyMappingLDAPForm extends Form<SAMLPropertyMapping> {
|
|||
<ak-codemirror mode="python" value="${ifDefined(this.mapping?.expression)}">
|
||||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
Expression using Python. See <a href="https://goauthentik.io/docs/property-mappings/expression/">here</a> for a list of all variables.
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
</form>`;
|
||||
|
|
|
@ -71,7 +71,10 @@ export class PropertyMappingScopeForm extends Form<ScopeMapping> {
|
|||
<ak-codemirror mode="python" value="${ifDefined(this.mapping?.expression)}">
|
||||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
Expression using Python. See <a href="https://goauthentik.io/docs/property-mappings/expression/">here</a> for a list of all variables.
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
</ak-form-element-horizontal>
|
||||
</form>`;
|
||||
|
|
|
@ -168,7 +168,7 @@ export class UserViewPage extends Page {
|
|||
</div>
|
||||
<div class="pf-c-card pf-l-gallery__item pf-m-4-col" style="grid-column-end: span 4;grid-row-end: span 2;">
|
||||
<div class="pf-c-card__body">
|
||||
<ak-charts-user userId=${this.user.pk}>
|
||||
<ak-charts-user userId=${this.user.pk || 0}>
|
||||
</ak-charts-user>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue