[IMP] website: add edit website systray item
See merge commit for more information. task-2687506
This commit is contained in:
@@ -175,6 +175,8 @@
|
||||
'website/static/src/client_actions/*/*.scss',
|
||||
'website/static/src/services/website_service.js',
|
||||
'website/static/src/components/navbar/navbar.js',
|
||||
'website/static/src/systray_items/*.js',
|
||||
'website/static/src/systray_items/*.scss',
|
||||
],
|
||||
'web.qunit_suite_tests': [
|
||||
'website/static/tests/dashboard_tests.js',
|
||||
@@ -246,6 +248,7 @@
|
||||
'website/static/src/xml/website_widget.xml',
|
||||
'website/static/src/xml/theme_preview.xml',
|
||||
'website/static/src/client_actions/*/*.xml',
|
||||
'website/static/src/systray_items/*.xml',
|
||||
],
|
||||
'website.test_bundle': [
|
||||
'/web/static/lib/qweb/qweb2.js',
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
const { Component } = owl;
|
||||
|
||||
class EditWebsiteSystray extends Component {}
|
||||
EditWebsiteSystray.template = "website.EditWebsiteSystray";
|
||||
|
||||
export const systrayItem = {
|
||||
Component: EditWebsiteSystray,
|
||||
};
|
||||
|
||||
registry.category("website_systray").add("EditWebsite", systrayItem, { sequence: 9 });
|
||||
@@ -0,0 +1,3 @@
|
||||
.o_edit_website_container {
|
||||
@include button-variant($o-brand-primary, $o-brand-primary);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="website.EditWebsiteSystray" owl="1">
|
||||
<div class="o_menu_systray_item o_edit_website_container">
|
||||
<a href="#" accesskey="a"><span class="fa fa-pencil mr-2"/>Edit</a>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user