3
0
Fork 0
web_techsystech/web_help/static/src/change_password_trip.esm.js

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",
});