web: fix linting errors by adding a wrapper for next param

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-06 13:19:39 +01:00
parent 3c01a1dd7b
commit 011babbbd9
5 changed files with 20 additions and 9 deletions

View File

@ -13,6 +13,8 @@ import PFForm from "@patternfly/patternfly/components/Form/form.css";
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import { AndNext } from "../../../api/Config";
@customElement("ak-user-settings-password")
export class UserSettingsPassword extends LitElement {
@property()
@ -29,7 +31,7 @@ export class UserSettingsPassword extends LitElement {
<div class="pf-c-card__title">${t`Change your password`}</div>
<div class="pf-c-card__body">
<a
href="${ifDefined(this.configureUrl)}?next=${encodeURIComponent(
href="${ifDefined(this.configureUrl)}${AndNext(
"/if/user/#/settings;page-details",
)}"
class="pf-c-button pf-m-primary"