| 1 |
import { BaseOptionComponent } from "@html_builder/core/utils"; |
| 2 |
import { Plugin } from "@html_editor/plugin"; |
| 3 |
import { _t } from "@web/core/l10n/translation"; |
| 4 |
import { registry } from "@web/core/registry"; |
| 5 |
|
| 6 |
export class CoursePageOption extends BaseOptionComponent { |
| 7 |
static template = "website_sales_slides.CoursePageOption"; |
| 8 |
static selector = "main:has(.o_wslides_course_header)"; |
| 9 |
static title = _t("Course Page"); |
| 10 |
static groups = ["website.group_website_designer"]; |
| 11 |
static editableOnly = false; |
| 12 |
} |
| 13 |
|
| 14 |
class CoursePageOptionPlugin extends Plugin { |
| 15 |
static id = "coursePageOption"; |
| 16 |
resources = { |
| 17 |
builder_options: [CoursePageOption], |
| 18 |
}; |
| 19 |
} |
| 20 |
|
| 21 |
registry.category("website-plugins").add(CoursePageOptionPlugin.id, CoursePageOptionPlugin); |