2023-11-03 19:26:16 +00:00
|
|
|
( function ( M ) {
|
|
|
|
var
|
|
|
|
mobile = M.require( 'mobile.startup' ),
|
|
|
|
mfExtend = mobile.mfExtend,
|
2019-02-08 17:04:26 +00:00
|
|
|
View = mobile.View,
|
2019-07-02 21:10:10 +00:00
|
|
|
IssueNotice = require( './IssueNotice.js' );
|
2018-11-24 01:49:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IssueList
|
2020-06-02 21:21:44 +00:00
|
|
|
*
|
2018-11-24 01:49:47 +00:00
|
|
|
* @class IssueList
|
|
|
|
* @extends View
|
|
|
|
*
|
|
|
|
* @param {IssueSummary} issues
|
|
|
|
*/
|
2023-11-03 19:26:16 +00:00
|
|
|
function IssueList( issues ) {
|
|
|
|
this.issues = issues;
|
|
|
|
View.call( this, { className: 'cleanup' } );
|
|
|
|
}
|
|
|
|
|
|
|
|
mfExtend( IssueList, View, {
|
|
|
|
tagName: 'ul',
|
|
|
|
postRender: function () {
|
|
|
|
View.prototype.postRender.apply( this, arguments );
|
2018-11-24 01:49:47 +00:00
|
|
|
this.append(
|
|
|
|
this.issues.map( function ( issue ) {
|
|
|
|
return new IssueNotice( issue ).$el;
|
|
|
|
} )
|
|
|
|
);
|
|
|
|
}
|
2023-11-03 19:26:16 +00:00
|
|
|
} );
|
|
|
|
|
2019-07-02 21:10:10 +00:00
|
|
|
module.exports = IssueList;
|
2019-09-27 18:53:01 +00:00
|
|
|
|
2023-11-03 19:26:16 +00:00
|
|
|
// eslint-disable-next-line no-restricted-properties
|
|
|
|
}( mw.mobileFrontend ) );
|