mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
CrossWikiUnreadFilterWidget: Remove unused this.localSource
This also means PageFilterWidget can stop worrying about being given a nonexistent source. Change-Id: Id999a117c66d0600a4386713c98501cc5ed4236a
This commit is contained in:
parent
6c4bf99da8
commit
eae458801f
|
@ -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