2023-11-07 16:29:17 +00:00
|
|
|
const
|
|
|
|
mobile = require( 'mobile.startup' ),
|
|
|
|
View = mobile.View,
|
|
|
|
IssueNotice = require( './IssueNotice.js' );
|
2018-11-24 01:49:47 +00:00
|
|
|
|
2023-11-07 16:29:17 +00:00
|
|
|
/**
|
|
|
|
* IssueList
|
|
|
|
*
|
2024-06-26 13:23:40 +00:00
|
|
|
* @class
|
|
|
|
* @ignore
|
2023-11-07 16:29:17 +00:00
|
|
|
* @extends View
|
|
|
|
*
|
|
|
|
* @param {IssueSummary} issues
|
|
|
|
*/
|
2024-12-05 01:26:20 +00:00
|
|
|
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 )
|
|
|
|
);
|
|
|
|
}
|
2023-11-07 16:29:17 +00:00
|
|
|
}
|
2024-12-05 01:26:20 +00:00
|
|
|
|
2023-11-07 16:29:17 +00:00
|
|
|
module.exports = IssueList;
|