From 3ad833b3aebd484fbb80eecd5eff930a2031d6f5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 2 Dec 2017 07:28:03 +0100 Subject: [PATCH] Will no longer show incomplete languages. [skip ci] --- .../Controllers/PreferencesController.php | 2 -- resources/views/preferences/index.twig | 28 +++++++++---------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.php index 4dfa42d049..f97f87bde5 100644 --- a/app/Http/Controllers/PreferencesController.php +++ b/app/Http/Controllers/PreferencesController.php @@ -102,7 +102,6 @@ class PreferencesController extends Controller $tjOptionalFields = Preferences::get('transaction_journal_optional_fields', [])->data; $is2faEnabled = Preferences::get('twoFactorAuthEnabled', 0)->data; // twoFactorAuthEnabled $has2faSecret = null !== Preferences::get('twoFactorAuthSecret'); // hasTwoFactorAuthSecret - $showIncomplete = true === env('SHOW_INCOMPLETE_TRANSLATIONS', false); return view( 'preferences.index', @@ -117,7 +116,6 @@ class PreferencesController extends Controller 'fiscalYearStart', 'is2faEnabled', 'has2faSecret', - 'showIncomplete', 'showDeps' ) ); diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twig index c8fa8d80ca..04f4bd521e 100644 --- a/resources/views/preferences/index.twig +++ b/resources/views/preferences/index.twig @@ -29,21 +29,19 @@

{{ 'pref_languages'|_ }}

{{ 'pref_languages_help'|_ }}

{% for key, lang in Config.get('firefly.languages') %} - {% if lang.complete == true or (lang.complete == false and showIncomplete) %} -
- -
- {% endif %} +
+ +
{% endfor %}