diff --git a/ui/v2.5/src/hooks/Config.tsx b/ui/v2.5/src/hooks/Config.tsx
new file mode 100644
index 00000000000..a7cd5b19858
--- /dev/null
+++ b/ui/v2.5/src/hooks/Config.tsx
@@ -0,0 +1,28 @@
+import React from "react";
+import * as GQL from "src/core/generated-graphql";
+
+interface IContext {
+ configuration?: GQL.ConfigDataFragment;
+ loading?: boolean;
+}
+
+export const ConfigurationContext = React.createContext
({});
+
+export const ConfigurationProvider: React.FC = ({
+ loading,
+ configuration,
+ children,
+}) => {
+ return (
+
+ {children}
+
+ );
+};
+
+export default ConfigurationProvider;
diff --git a/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx b/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx
index 8b5fc8932d6..27bbca91ba6 100644
--- a/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx
+++ b/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx
@@ -15,9 +15,9 @@ import debounce from "lodash/debounce";
import { Icon, LoadingIndicator } from "src/components/Shared";
import { useInterval, usePageVisibility } from "src/hooks";
-import { useConfiguration } from "src/core/StashService";
import { FormattedMessage, useIntl } from "react-intl";
import { DisplayMode, LightboxImage, ScrollMode } from "./LightboxImage";
+import { ConfigurationContext } from "../Config";
const CLASSNAME = "Lightbox";
const CLASSNAME_HEADER = `${CLASSNAME}-header`;
@@ -93,11 +93,10 @@ export const LightboxComponent: React.FC = ({
const allowNavigation = images.length > 1 || pageCallback;
const intl = useIntl();
- const config = useConfiguration();
+ const { configuration: config } = React.useContext(ConfigurationContext);
const userSelectedSlideshowDelayOrDefault =
- config?.data?.configuration.interface.slideshowDelay ??
- DEFAULT_SLIDESHOW_DELAY;
+ config?.interface.slideshowDelay ?? DEFAULT_SLIDESHOW_DELAY;
// slideshowInterval is used for controlling the logic
// displaySlideshowInterval is for display purposes only
diff --git a/ui/v2.5/src/locales/en-GB.json b/ui/v2.5/src/locales/en-GB.json
index 5edfa4ac276..2d77a815b67 100644
--- a/ui/v2.5/src/locales/en-GB.json
+++ b/ui/v2.5/src/locales/en-GB.json
@@ -327,6 +327,13 @@
"heading": "Custom CSS",
"option_label": "Custom CSS enabled"
},
+ "editing": {
+ "disable_dropdown_create": {
+ "heading": "Disable dropdown create",
+ "description": "Remove the ability to create new objects from the dropdown selectors"
+ },
+ "heading": "Editing"
+ },
"handy_connection_key": {
"description": "Handy connection key to use for interactive scenes.",
"heading": "Handy Connection Key"