web: fix minor issues
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
b8c41f54c5
commit
67fef02d71
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -72,8 +72,8 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
|
|||
}}
|
||||
type=${ifDefined(item.policyObj?.component)}>
|
||||
</ak-proxy-form>
|
||||
<button slot="trigger" class="pf-c-button pf-m-secondary">
|
||||
${t`Edit`}
|
||||
<button slot="trigger" class="pf-c-button pf-m-primary">
|
||||
${t`Edit Policy`}
|
||||
</button>
|
||||
</ak-forms-modal>`;
|
||||
} else if (item.group) {
|
||||
|
@ -100,8 +100,8 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
|
|||
</span>
|
||||
<ak-user-form slot="form" .user=${item.userObj}>
|
||||
</ak-user-form>
|
||||
<button slot="trigger" class="pf-m-secondary pf-c-button">
|
||||
${t`Edit`}
|
||||
<button slot="trigger" class="pf-c-button pf-m-primary">
|
||||
${t`Edit User`}
|
||||
</button>
|
||||
</ak-forms-modal>`;
|
||||
} else {
|
||||
|
|
|
@ -64,6 +64,9 @@ export class PolicyBindingForm extends Form<PolicyBinding> {
|
|||
target: this.targetPk || "",
|
||||
}).then(bindings => {
|
||||
const orders = bindings.results.map(binding => binding.order);
|
||||
if (orders.length < 1) {
|
||||
return 0;
|
||||
}
|
||||
return Math.max(...orders) + 1;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ export class ExpressionPolicyForm extends Form<ExpressionPolicy> {
|
|||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
<a target="_blank" href="https://goauthentik.io/docs/policies/expression">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -65,7 +65,7 @@ export class PropertyMappingLDAPForm extends Form<LDAPPropertyMapping> {
|
|||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
<a target="_blank" href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -75,7 +75,7 @@ export class PropertyMappingLDAPForm extends Form<SAMLPropertyMapping> {
|
|||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
<a target="_blank" href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -72,7 +72,7 @@ export class PropertyMappingScopeForm extends Form<ScopeMapping> {
|
|||
</ak-codemirror>
|
||||
<p class="pf-c-form__helper-text">
|
||||
${t`Expression using Python.`}
|
||||
<a href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
<a target="_blank" href="https://goauthentik.io/docs/property-mappings/expression/">
|
||||
${t`See documentation for a list of all variables.`}
|
||||
</a>
|
||||
</p>
|
||||
|
|
Reference in New Issue