From 6ee8e1e37f0cbb285b9913780cd36e98258e4460 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 26 Dec 2023 20:33:17 +0000 Subject: [PATCH] auto disable in UI --- src/main/java/stirling/software/SPDF/config/AppConfig.java | 5 +++++ src/main/resources/messages_en_GB.properties | 2 +- src/main/resources/templates/fragments/navbar.html | 4 ++-- src/main/resources/templates/home.html | 7 ++++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/config/AppConfig.java b/src/main/java/stirling/software/SPDF/config/AppConfig.java index 4d02f974..326501cb 100644 --- a/src/main/java/stirling/software/SPDF/config/AppConfig.java +++ b/src/main/java/stirling/software/SPDF/config/AppConfig.java @@ -41,6 +41,11 @@ public class AppConfig { return (defaultNavBar != null) ? defaultNavBar : "Stirling PDF"; } + @Bean(name = "enableAlphaFunctionality") + public boolean enableAlphaFunctionality() { + return applicationProperties.getSystem().getEnableAlphaFunctionality() != null ? applicationProperties.getSystem().getEnableAlphaFunctionality() : false; + } + @Bean(name = "rateLimit") public boolean rateLimit() { String appName = System.getProperty("rateLimit"); diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index c962d116..2148629e 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -275,7 +275,7 @@ home.scalePages.title=Adjust page size/scale home.scalePages.desc=Change the size/scale of a page and/or its contents. scalePages.tags=resize,modify,dimension,adapt -home.pipeline.title=Pipeline (Advanced) (Alpha) +home.pipeline.title=Pipeline (Advanced) home.pipeline.desc=Run multiple actions on PDFs by defining pipeline scripts pipeline.tags=automate,sequence,scripted,batch-process diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 31519548..9863c15e 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -32,12 +32,12 @@ - +