0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00

Remove comment button on InlinePanel fields

This commit is contained in:
Sage Abdullah 2023-05-22 10:46:13 +01:00 committed by Thibaud Colas
parent aca340f368
commit a29d573af8

View File

@ -155,7 +155,9 @@ window.comments = (() => {
register() {
if (!this.contentpath) {
// The widget has no valid contentpath, skip subscriptions
// The widget has no valid contentpath,
// remove the button and skip subscriptions
this.commentAdditionNode.remove();
return undefined;
}
const initialState = commentApp.store.getState();