mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_help: Make it work for small screens
[ADD] Roadmap
This commit is contained in:
1
web_help/readme/ROADMAP.rst
Normal file
1
web_help/readme/ROADMAP.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* Implement keyboard shortcuts
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<HelpButton
|
<HelpButton
|
||||||
resModel="props.actionProps.resModel"
|
resModel="props.actionProps.resModel"
|
||||||
viewType="props.actionProps.type"
|
viewType="props.actionProps.type"
|
||||||
btnClass="'btn-link p-1'"
|
btnClass="env.isSmall and 'btn-link p-1 text-white' or 'btn-link p-1'"
|
||||||
/>
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import {registry} from "@web/core/registry";
|
|||||||
export class UserTrip extends Trip {
|
export class UserTrip extends Trip {
|
||||||
setup() {
|
setup() {
|
||||||
this.addStep({
|
this.addStep({
|
||||||
selector: ".o_list_button_add",
|
selector: ".o_list_button_add, .o-kanban-button-new",
|
||||||
content: this.env._t("To create a new user click here."),
|
content: this.env._t("To create a new user click here."),
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addStep({
|
this.addStep({
|
||||||
selector: ".o_cp_searchview",
|
selector: ".o_cp_searchview, .o_enable_searchview",
|
||||||
content: this.env._t("Use the searchbar to find specific users."),
|
content: this.env._t("Use the searchbar to find specific users."),
|
||||||
renderContext: {
|
renderContext: {
|
||||||
cbBtnText: this.env._t("Next"),
|
cbBtnText: this.env._t("Next"),
|
||||||
@@ -27,5 +27,6 @@ export class UserTrip extends Trip {
|
|||||||
|
|
||||||
registry.category("trips").add("user_trip", {
|
registry.category("trips").add("user_trip", {
|
||||||
Trip: UserTrip,
|
Trip: UserTrip,
|
||||||
selector: (model, viewType) => model === "res.users" && viewType === "list",
|
selector: (model, viewType) =>
|
||||||
|
model === "res.users" && ["list", "kanban"].includes(viewType),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user