You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
784 B

  1. /** @odoo-module **/
  2. import { session } from "@web/session";
  3. import { url } from "@web/core/utils/urls";
  4. import { Dropdown } from "@web/core/dropdown/dropdown";
  5. export class AppsMenu extends Dropdown {
  6. setup() {
  7. super.setup();
  8. if (this.env.services.company.currentCompany.has_background_image) {
  9. this.backgroundImageUrl = url('/web/image', {
  10. model: 'res.company',
  11. field: 'background_image',
  12. id: this.env.services.company.currentCompany.id,
  13. });
  14. } else {
  15. this.backgroundImageUrl = '/muk_web_theme/static/img/background.png';
  16. }
  17. this.env.bus.on("ACTION_MANAGER:UI-UPDATED", this, ev => this.close());
  18. }
  19. }
  20. Object.assign(AppsMenu, {
  21. template: 'muk_web_theme.AppsMenu',
  22. });