mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-13 22:49:46 +00:00
19ea6328b0
Bug: T348807 Change-Id: Ib71b43005e5788d0e29917a165281faa84926414
33 lines
584 B
JavaScript
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;
|
|
|
|
}() );
|