mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/page-issues/overlay/IssueList.js
Jon Robson 19ea6328b0 Drop mw.mobileFrontend references
Bug: T348807
Change-Id: Ib71b43005e5788d0e29917a165281faa84926414
2023-10-31 21:54:26 +00:00

33 lines
584 B
JavaScript

( function () {
const
mobile = require( 'mobile.startup' ),
View = mobile.View,
IssueNotice = require( './IssueNotice.js' );
/**
* IssueList
*
* @class IssueList
* @extends View
*
* @param {IssueSummary} issues
*/
class IssueList extends View {
constructor( issues ) {
super( { className: 'cleanup' } );
this.issues = issues;
this.tagName = 'ul';
}
postRender() {
super.postRender();
this.append(
this.issues.map( function ( issue ) {
return new IssueNotice( issue ).$el;
} )
);
}
}
module.exports = IssueList;
}() );