mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "CrossWikiUnreadFilterWidget: Remove unused this.localSource"
This commit is contained in:
commit
711e2f84c2
|
@ -60,12 +60,6 @@
|
|||
this.aggregate( { choose: 'pageFilterChoose' } );
|
||||
this.connect( this, { pageFilterChoose: 'onPageFilterChoose' } );
|
||||
|
||||
// Always have a local wiki
|
||||
this.localSource = new mw.echo.ui.PageFilterWidget(
|
||||
this.model.getSourcePagesModel(),
|
||||
mw.config.get( 'wgDBname' )
|
||||
);
|
||||
|
||||
this.$element
|
||||
.addClass( 'mw-echo-ui-crossWikiUnreadFilterWidget' )
|
||||
.append(
|
||||
|
@ -159,9 +153,6 @@
|
|||
);
|
||||
|
||||
widgets.push( widget );
|
||||
if ( source !== mw.config.get( 'wgDBname' ) ) {
|
||||
this.localSource = widget;
|
||||
}
|
||||
}
|
||||
|
||||
this.clearItems();
|
||||
|
|
|
@ -75,9 +75,6 @@
|
|||
optionWidgets = [],
|
||||
sourcePages = this.model.getSourcePages( this.source );
|
||||
|
||||
if ( !sourcePages ) {
|
||||
return;
|
||||
}
|
||||
for ( i = 0; i < sourcePages.length; i++ ) {
|
||||
widget = new mw.echo.ui.PageNotificationsOptionWidget( {
|
||||
label: sourcePages[ i ].title,
|
||||
|
|
Loading…
Reference in a new issue