From b264386b1ca94df42fce1d63a5df2e68a1eeee01 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 28 Jun 2015 11:15:54 +0200 Subject: [PATCH] Improved check when to show up- --- .../app/controllers/widget/translation_support.js.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee b/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee index 7a9efd2c7..94ecac00e 100644 --- a/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/translation_support.js.coffee @@ -8,11 +8,14 @@ class TranslationSupport extends App.Controller return if !@Config.get('system_init_done') # to not translate en - return if App.i18n.notTranslatedFeatureEnabled(App.i18n.get()) + return if !App.i18n.notTranslatedFeatureEnabled(App.i18n.get()) # only show for admins return if !@isRole('Admin') + # do not show in setup screens + return if window.location.hash.toString().match(/getting/) + # verify current state of translation meta = App.i18n.meta() percent = parseInt( meta.translated / (meta.total / 100) )