Files
web/web_help/static/src/change_password_trip.esm.js
tarteo d6068076d7 [ADD] web_help
[FIX] web_help: Run pre-commit

[FIX] web_help: Run pre-commit

[FIX] web_help: Run pre-commit

[FIX] web_help: Run pre-commit

[IMP] Easy changeable template and buttons texts, more demo, fixed readme.

[IMP] Easy changeable template and buttons texts, more demo, fixed readme.

[IMP] Easy changeable template and buttons texts, more demo, fixed readme.

[FIX] Grammar
2023-02-28 13:31:54 +01:00

24 lines
729 B
JavaScript

/** @odoo-module **/
import {Trip} from "@web_help/trip.esm";
import {registry} from "@web/core/registry";
export class ChangePasswordTrip extends Trip {
setup() {
this.addStep({
selector: "th[data-name='new_passwd'], td[name='new_passwd']",
content: this.env._t("Change the password here, make sure it's secure."),
});
this.addStep({
selector: "button[name='change_password_button']",
content: this.env._t("Click here to confirm it."),
});
}
}
registry.category("trips").add("change_password_trip", {
Trip: ChangePasswordTrip,
selector: (model, viewType) =>
model === "change.password.wizard" && viewType === "form",
});