From 4c03a338bb63f9889c7a9f8d4bfbf333c5f8e5e3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 28 Jun 2015 03:38:30 +0200 Subject: [PATCH] Do not show todo translations if not todo translation exists. --- app/assets/javascripts/app/controllers/translation.js.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/translation.js.coffee b/app/assets/javascripts/app/controllers/translation.js.coffee index eb978f243..028bbdb45 100644 --- a/app/assets/javascripts/app/controllers/translation.js.coffee +++ b/app/assets/javascripts/app/controllers/translation.js.coffee @@ -148,6 +148,9 @@ class TranslationToDo extends App.Controller @html App.view('translation/english')() return + if !App.i18n.getNotTranslated(@locale) + return + listNotTranslated = [] for key, value of App.i18n.getNotTranslated(@locale) item = [ '', key, '', '']