Skip to content

Commit

Permalink
[MOV] website_forum: rename the file containing the public templates
Browse files Browse the repository at this point in the history
The website_forum_share_templates does not exclusively contain templates
to the forum share widget since the addition of the toolbar template.
Renaming the file to public_templates arguably makes more sense.

task-2749467

closes odoo#85998

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
  • Loading branch information
tdecaluwe authored and qsm-odoo committed Mar 9, 2022
1 parent 1d0b427 commit 57f690c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/website_forum/static/src/js/website_forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
selector: '.website_forum',
xmlDependencies: [
'/web_editor/static/src/xml/editor.xml',
'/website_forum/static/src/xml/website_forum_share_templates.xml',
'/website_forum/static/src/xml/public_templates.xml',
],
events: {
'click .karma_required': '_onKarmaRequiredClick',
Expand Down Expand Up @@ -558,7 +558,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({

publicWidget.registry.websiteForumSpam = publicWidget.Widget.extend({
selector: '.o_wforum_moderation_queue',
xmlDependencies: ['/website_forum/static/src/xml/website_forum_share_templates.xml'],
xmlDependencies: ['/website_forum/static/src/xml/public_templates.xml'],
events: {
'click .o_wforum_select_all_spam': '_onSelectallSpamClick',
'click .o_wforum_mark_spam': 'async _onMarkSpamClick',
Expand Down
2 changes: 1 addition & 1 deletion addons/website_forum/static/src/js/website_forum.share.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var qweb = core.qweb;
var ForumShare = publicWidget.registry.socialShare.extend({
selector: '',
xmlDependencies: publicWidget.registry.socialShare.prototype.xmlDependencies
.concat(['/website_forum/static/src/xml/website_forum_share_templates.xml']),
.concat(['/website_forum/static/src/xml/public_templates.xml']),
events: {},

/**
Expand Down

0 comments on commit 57f690c

Please sign in to comment.