GalleryContextItem: Only count image node children

Bug: T320874
Change-Id: Id4c70ece1e54a47e142c6dee3fd25b3519c2fea9
This commit is contained in:
Wout Gevaert 2023-01-16 11:46:48 +01:00
parent 2c7499f644
commit 83013d3ca6

View file

@ -44,7 +44,7 @@ ve.ui.MWGalleryContextItem.static.commandName = 'gallery';
* @inheritdoc
*/
ve.ui.MWGalleryContextItem.prototype.getDescription = function () {
return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.children.length );
return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.getImageNodes().length );
};
/* Registration */