From f1e29fffcdd050859cae099d6a86732b6727de08 Mon Sep 17 00:00:00 2001 From: Daniele Rosario Date: Mon, 20 Nov 2023 11:46:53 +0100 Subject: [PATCH 1/3] Update LanguageLineResource.php --- src/Resources/LanguageLineResource.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Resources/LanguageLineResource.php b/src/Resources/LanguageLineResource.php index b29b735..33f9974 100644 --- a/src/Resources/LanguageLineResource.php +++ b/src/Resources/LanguageLineResource.php @@ -168,6 +168,15 @@ public static function getNavigationLabel(): string return __('translation-manager::translations.translation-navigation-label'); } + public static function getNavigationIcon(): ?string + { + if (config('translation-manager.navigation_icon') === false) { + return null; + } + + return config('translation-manager.navigation_icon', static::$navigationIcon); + } + public static function getNavigationGroup(): ?string { if (config('translation-manager.navigation_group_translation_key')) { From 00538a0bd5365a3a2042030cc532ce3c4982520c Mon Sep 17 00:00:00 2001 From: Daniele Rosario Date: Mon, 20 Nov 2023 11:47:13 +0100 Subject: [PATCH 2/3] Update translation-manager.php --- config/translation-manager.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/translation-manager.php b/config/translation-manager.php index 8c87c9c..aaf9753 100644 --- a/config/translation-manager.php +++ b/config/translation-manager.php @@ -69,6 +69,18 @@ 'navigation_group' => null, + /* + |-------------------------------------------------------------------------- + | Navigation Icon + |-------------------------------------------------------------------------- + | + | The navigation icon to use. Set `false` to disable the icon. + | Set `null` to use the default one, or specify a custom icon + | + */ + + 'navigation_icon' => false, + /* |-------------------------------------------------------------------------- | Quick-Translate Navigation Registration From 8a57caa7f4e6b9a7c787b2a819e8de5cdfc05890 Mon Sep 17 00:00:00 2001 From: Jehizkia Date: Wed, 20 Dec 2023 19:29:06 +0100 Subject: [PATCH 3/3] Set default icon in config --- config/translation-manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/translation-manager.php b/config/translation-manager.php index aaf9753..43fe7fe 100644 --- a/config/translation-manager.php +++ b/config/translation-manager.php @@ -74,12 +74,12 @@ | Navigation Icon |-------------------------------------------------------------------------- | - | The navigation icon to use. Set `false` to disable the icon. - | Set `null` to use the default one, or specify a custom icon + | The navigation icon to use. Set `false` to disable the icon + | or specify a custom icon | */ - 'navigation_icon' => false, + 'navigation_icon' => 'heroicon-o-globe-alt', /* |--------------------------------------------------------------------------