From 51c4a6031387c54294683c9ae6ebdb8077842ca1 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Tue, 22 Oct 2024 12:22:08 +0100 Subject: [PATCH] Remove pro badge if enabled --- src/main/java/stirling/software/SPDF/EE/EEAppConfig.java | 9 ++++----- src/main/resources/templates/fragments/navbar.html | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java b/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java index 5b1b4070..cf0bcbd4 100644 --- a/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java +++ b/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java @@ -7,20 +7,19 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Lazy; +import lombok.extern.slf4j.Slf4j; import stirling.software.SPDF.model.ApplicationProperties; @Configuration @Lazy +@Slf4j public class EEAppConfig { - private static final Logger logger = LoggerFactory.getLogger(EEAppConfig.class); - @Autowired ApplicationProperties applicationProperties; - @Autowired private LicenseKeyChecker licenseKeyChecker; @Bean(name = "runningEE") public boolean runningEnterpriseEdition() { - return licenseKeyChecker.getEnterpriseEnabledResult(); + return licenseKeyChecker.getEnterpriseEnabledResult(); } -} +} \ No newline at end of file diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 24a2ca57..d31749da 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -360,7 +360,7 @@ -