1
0
Эх сурвалжийг харах

refactor(common): Rename loginImage to loginImageUrl

Michael Bromley 3 жил өмнө
parent
commit
cac76f771f

+ 2 - 2
docs/data/build.json

@@ -1,4 +1,4 @@
 {
-  "version": "1.2.0",
-  "commit": "765479402"
+  "version": "1.8.5",
+  "commit": "f4f977bb2"
 }

+ 1 - 1
packages/admin-ui-plugin/src/plugin.ts

@@ -246,7 +246,7 @@ export class AdminUiPlugin implements NestModule {
                 'hideVersion',
                 AdminUiPlugin.options.adminUiConfig?.hideVersion || false,
             ),
-            loginImage: AdminUiPlugin.options.adminUiConfig?.loginImage,
+            loginImageUrl: AdminUiPlugin.options.adminUiConfig?.loginImageUrl,
             cancellationReasons: propOrDefault('cancellationReasons', undefined),
         };
     }

+ 1 - 1
packages/admin-ui/src/lib/login/src/components/login/login.component.ts

@@ -17,7 +17,7 @@ export class LoginComponent {
     brand = getAppConfig().brand;
     hideVendureBranding = getAppConfig().hideVendureBranding;
     hideVersion = getAppConfig().hideVersion;
-    customImageUrl = getAppConfig().loginImage;
+    customImageUrl = getAppConfig().loginImageUrl;
     imageUrl = '';
     imageUnsplashUrl = '';
     imageLocation = '';

+ 2 - 2
packages/common/src/shared-types.ts

@@ -305,11 +305,11 @@ export interface AdminUiConfig {
     hideVersion?: boolean;
     /**
      * @description
-     * The custom login image
+     * A url of a custom image to be used on the login screen, to override the images provided by Vendure's login image server.
      *
      * @since 1.9.0
      */
-    loginImage?: string;
+    loginImageUrl?: string;
     /**
      * @description
      * Allows you to provide default reasons for a refund or cancellation. This will be used in the