mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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
This commit is contained in:
31
web_help/static/src/user_trip.esm.js
Normal file
31
web_help/static/src/user_trip.esm.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/** @odoo-module **/
|
||||
import {Trip} from "@web_help/trip.esm";
|
||||
import {registry} from "@web/core/registry";
|
||||
|
||||
export class UserTrip extends Trip {
|
||||
setup() {
|
||||
this.addStep({
|
||||
selector: ".o_list_button_add",
|
||||
content: this.env._t("To create a new user click here."),
|
||||
});
|
||||
|
||||
this.addStep({
|
||||
selector: ".o_cp_searchview",
|
||||
content: this.env._t("Use the searchbar to find specific users."),
|
||||
renderContext: {
|
||||
cbBtnText: this.env._t("Next"),
|
||||
closeBtnText: this.env._t("Cancel"),
|
||||
},
|
||||
});
|
||||
|
||||
this.addStep({
|
||||
selector: ".o_cp_switch_buttons",
|
||||
content: this.env._t("You can switch to different views here."),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
registry.category("trips").add("user_trip", {
|
||||
Trip: UserTrip,
|
||||
selector: (model, viewType) => model === "res.users" && viewType === "list",
|
||||
});
|
||||
Reference in New Issue
Block a user