mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/page-issues/overlay/IssueList.js

36 lines
533 B
JavaScript
Raw Normal View History

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