Petar.petkovic has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378849 )

Change subject: Move suggestions list ULS creation
......................................................................

Move suggestions list ULS creation

Followup I1a2cc062: Move suggestions list ULS creation
out from listen method.

Change-Id: I89b319eb9fb46c59f51403a298b6b6e674d8dedb
---
M modules/dashboard/ext.cx.dashboard.js
1 file changed, 1 insertion(+), 6 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/49/378849/1

diff --git a/modules/dashboard/ext.cx.dashboard.js 
b/modules/dashboard/ext.cx.dashboard.js
index a68bd97..b1a6270 100644
--- a/modules/dashboard/ext.cx.dashboard.js
+++ b/modules/dashboard/ext.cx.dashboard.js
@@ -152,6 +152,7 @@
                this.renderTranslations();
                if ( mw.config.get( 'wgContentTranslationEnableSuggestions' ) ) 
{
                        this.renderTranslationSuggestions();
+                       this.createUlsForSuggestionsList();
                } else {
                        this.setActiveList( 'draft' );
                        return;
@@ -407,12 +408,6 @@
                } );
 
                mw.hook( 'mw.cx.translationlist.items.changed' ).add( 
this.fillLanguageFilters.bind( this ) );
-
-               if ( mw.config.get( 'wgContentTranslationEnableSuggestions' ) ) 
{
-                       // Here only 'Suggestions' list language filter gets 
created, translation lists
-                       // ('In progress' and 'Published') create their 
language filters in fillLanguageFilters method
-                       this.createUlsForSuggestionsList();
-               }
 
                this.$publishedArticlesButton.on( 'click', function () {
                        self.filter.selectItemByData( 'published' );

-- 
To view, visit https://gerrit.wikimedia.org/r/378849
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89b319eb9fb46c59f51403a298b6b6e674d8dedb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Petar.petkovic <ppetko...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to