From 14162816907313ed732f9adfc829ff96086bf47b Mon Sep 17 00:00:00 2001 From: Chris Hirt Date: Fri, 4 Feb 2022 20:42:08 +0700 Subject: [PATCH] displayShareButton and displaySettingsButton booleans Refactor to these two boolean values which control show/hide of the two buttons, with some shared logic in the controller. Remove unnecessary CSS for show/hide (use ng-if instead) Fix up tests to suit --- .../container/languageforge.html.twig | 4 ++-- .../languageforge/theme/default/sass/_global.scss | 14 +------------- src/angular-app/bellows/core/navbar.controller.ts | 15 +++++---------- test/app/bellows/project-settings.e2e-spec.ts | 2 +- .../settings/config-input-systems.e2e-spec.ts | 2 +- 5 files changed, 10 insertions(+), 27 deletions(-) diff --git a/src/Site/views/languageforge/container/languageforge.html.twig b/src/Site/views/languageforge/container/languageforge.html.twig index 9b48bf6ad1..ff46e97ce3 100644 --- a/src/Site/views/languageforge/container/languageforge.html.twig +++ b/src/Site/views/languageforge/container/languageforge.html.twig @@ -81,7 +81,7 @@