Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/220122

Change subject: Fix missing new translation button for new users
......................................................................

Fix missing new translation button for new users

Apparently, it can prevent users starting new translations :)

Testplan:
Create a new user, enable cx beta feature and access Special:CX
You should get a green button there.

Change-Id: I0a1692463394bdd86d11cb3d8ffa1e7175b09f32
---
M modules/dashboard/ext.cx.translationlist.js
1 file changed, 2 insertions(+), 7 deletions(-)


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

diff --git a/modules/dashboard/ext.cx.translationlist.js 
b/modules/dashboard/ext.cx.translationlist.js
index 5419751..2ce3eea 100644
--- a/modules/dashboard/ext.cx.translationlist.js
+++ b/modules/dashboard/ext.cx.translationlist.js
@@ -53,14 +53,9 @@
                translations = $.map( translations, function ( e ) {
                        return e.translation;
                } );
-
                this.translations = translations;
-
-               if ( translations.length > 0 ) {
-                       this.$header.show();
-               }
-
-               this.listTranslations( translations );
+               this.$header.show();
+               this.listTranslations( this.translations );
                this.filters.status = 'draft';
                this.applyFilters( this.filters, translations );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a1692463394bdd86d11cb3d8ffa1e7175b09f32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

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

Reply via email to