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:
parent
aca340f368
commit
a29d573af8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user