Skip to content

Commit

Permalink
fix OptionPlugin title
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisGe committed Dec 20, 2024
1 parent 3fc547d commit 01c3aa9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, useSubEnv } from "@odoo/owl";
import { defaultBuilderComponents } from "../builder_components/default_builder_components";
import { useVisibilityObserver, useApplyVisibility } from "../builder_components/utils";
import { DependencyManager } from "../plugins/dependency_manager";
import { getSnippetName } from "@html_builder/utils";

export class OptionsContainer extends Component {
static template = "html_builder.OptionsContainer";
Expand All @@ -22,6 +23,6 @@ export class OptionsContainer extends Component {
}

get title() {
return this.env.getEditingElement().dataset.name;
return getSnippetName(this.env.getEditingElement());
}
}

0 comments on commit 01c3aa9

Please sign in to comment.