mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-21 10:03:08 +00:00
2be7b9f919
Additional changes: * Update Minerva so that it doesn't output any APIs to the documentation - this is intentional as Minerva does not have any public facing APIs. Bug: T368081 Change-Id: Ie1a3ea30cbf35663c7fdd2494c1698044882969e
28 lines
606 B
JavaScript
28 lines
606 B
JavaScript
const
|
|
mobile = require( 'mobile.startup' ),
|
|
View = mobile.View,
|
|
IssueNotice = require( './IssueNotice.js' );
|
|
|
|
/**
|
|
* IssueList
|
|
*
|
|
* @class
|
|
* @ignore
|
|
* @extends View
|
|
*
|
|
* @param {IssueSummary} issues
|
|
*/
|
|
function IssueList( issues ) {
|
|
this.issues = issues;
|
|
View.call( this, { className: 'cleanup' } );
|
|
}
|
|
OO.inheritClass( IssueList, View );
|
|
IssueList.prototype.tagName = 'ul';
|
|
IssueList.prototype.postRender = function () {
|
|
View.prototype.postRender.apply( this, arguments );
|
|
this.append(
|
|
( this.issues || [] ).map( ( issue ) => new IssueNotice( issue ).$el )
|
|
);
|
|
};
|
|
module.exports = IssueList;
|