Skip to content

Commit 65cfa1d

Browse files
committed
[IMP] top_bar: export TopBar component for Odoo trash banner integration
Exported the TopBar component to allow injection of the trash banner from the Odoo side. Renamed the irregularity map CSS class to enable reuse from Odoo. closes #7392 Task: 5030282 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
1 parent 0bd1110 commit 65cfa1d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/top_bar/top_bar.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77

88
@media (max-width: 768px) {
9-
.irregularity-map span {
9+
.topbar-banner span {
1010
overflow: auto;
1111
align-items: normal !important;
1212
}
@@ -53,7 +53,7 @@
5353
}
5454
}
5555

56-
.irregularity-map {
56+
.topbar-banner {
5757
border-top: 1px solid var(--os-separator-color);
5858
height: var(--os-desktop-topbar-toolbar-height);
5959

src/components/top_bar/top_bar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</div>
7373
<div
7474
t-if="this.fingerprints.isEnabled"
75-
class="irregularity-map d-flex align-items-center justify-content-between">
75+
class="topbar-banner irregularity-map d-flex align-items-center justify-content-between">
7676
<div
7777
t-on-click="() => this.fingerprints.disable()"
7878
role="button"

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ import {
336336
import { chartSubtypeRegistry } from "@odoo/o-spreadsheet-engine/registries/chart_subtype_registry";
337337
import { clipboardHandlersRegistries } from "@odoo/o-spreadsheet-engine/registries/clipboardHandlersRegistries";
338338
import "./clipboard_handlers";
339+
import { TopBar } from "./components/top_bar/top_bar";
339340

340341
export const helpers = {
341342
arg,
@@ -466,6 +467,7 @@ export const components = {
466467
ChartDashboardMenu,
467468
FullScreenFigure,
468469
NumberInput,
470+
TopBar,
469471
};
470472

471473
export const hooks = {

0 commit comments

Comments
 (0)