From 89be14e749be6b23ad4063fc4a6e199dc09639bb Mon Sep 17 00:00:00 2001 From: Andy Babic Date: Mon, 29 Jul 2024 12:54:40 +0100 Subject: [PATCH] Improve casing consistency of 'URL' --- .../static/bynder/js/video-chooser-modal.js | 10 +++++----- .../static/wagtaildocs/js/document-chooser-modal.js | 10 +++++----- .../static/wagtailimages/js/image-chooser-modal.js | 10 +++++----- .../templates/wagtailadmin/admin_base.html | 6 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/wagtail_bynder/static/bynder/js/video-chooser-modal.js b/src/wagtail_bynder/static/bynder/js/video-chooser-modal.js index 888cf21..411bf7f 100644 --- a/src/wagtail_bynder/static/bynder/js/video-chooser-modal.js +++ b/src/wagtail_bynder/static/bynder/js/video-chooser-modal.js @@ -1,7 +1,7 @@ const videoChooserModalOnloadHandlers = new window.BynderChooserModalOnloadHandlerFactory({ assetType: "video", - chosenMultipleUrl: `${window.videoChosenBaseURL}chosen-multiple/`, - chosenSingleUrl: `${window.videoChosenBaseURL}chosen/`, + chosenMultipleUrl: `${window.videoChosenBaseUrl}chosen-multiple/`, + chosenSingleUrl: `${window.videoChosenBaseUrl}chosen/`, }).getOnLoadHandlers(); class VideoChooserModal { @@ -10,13 +10,13 @@ class VideoChooserModal { // identifier for the ModalWorkflow response that indicates an item was chosen chosenResponseName = 'chosen'; - constructor(baseUrl) { - this.baseUrl = baseUrl; + constructor(BaseUrl) { + this.BaseUrl = BaseUrl; } // eslint-disable-next-line @typescript-eslint/no-unused-vars getURL(opts) { - return this.baseUrl; + return this.BaseUrl; } // eslint-disable-next-line diff --git a/src/wagtail_bynder/static/wagtaildocs/js/document-chooser-modal.js b/src/wagtail_bynder/static/wagtaildocs/js/document-chooser-modal.js index d7d5b5d..064a4e3 100644 --- a/src/wagtail_bynder/static/wagtaildocs/js/document-chooser-modal.js +++ b/src/wagtail_bynder/static/wagtaildocs/js/document-chooser-modal.js @@ -1,7 +1,7 @@ const documentChooserModalOnloadHandlers = new window.BynderChooserModalOnloadHandlerFactory({ assetType: "document", - chosenMultipleUrl: `${window.documentChosenBaseURL}chosen-multiple/`, - chosenSingleUrl: `${window.documentChosenBaseURL}chosen/`, + chosenMultipleUrl: `${window.documentChosenBaseUrl}chosen-multiple/`, + chosenSingleUrl: `${window.documentChosenBaseUrl}chosen/`, }).getOnLoadHandlers(); class DocumentChooserModal { @@ -10,13 +10,13 @@ class DocumentChooserModal { // identifier for the ModalWorkflow response that indicates an item was chosen chosenResponseName = 'chosen'; - constructor(baseUrl) { - this.baseUrl = baseUrl; + constructor(BaseUrl) { + this.BaseUrl = BaseUrl; } // eslint-disable-next-line @typescript-eslint/no-unused-vars getURL(opts) { - return this.baseUrl; + return this.BaseUrl; } // eslint-disable-next-line diff --git a/src/wagtail_bynder/static/wagtailimages/js/image-chooser-modal.js b/src/wagtail_bynder/static/wagtailimages/js/image-chooser-modal.js index 4d9a279..013d393 100644 --- a/src/wagtail_bynder/static/wagtailimages/js/image-chooser-modal.js +++ b/src/wagtail_bynder/static/wagtailimages/js/image-chooser-modal.js @@ -1,7 +1,7 @@ const imageChooserModalOnloadHandlers = new window.BynderChooserModalOnloadHandlerFactory({ assetType: "image", - chosenMultipleUrl: `${window.imageChosenBaseURL}chosen-multiple/`, - chosenSingleUrl: `${window.imageChosenBaseURL}chosen/`, + chosenMultipleUrl: `${window.imageChosenBaseUrl}chosen-multiple/`, + chosenSingleUrl: `${window.imageChosenBaseUrl}chosen/`, }).getOnLoadHandlers(); class ImageChooserModal { @@ -10,13 +10,13 @@ class ImageChooserModal { // identifier for the ModalWorkflow response that indicates an item was chosen chosenResponseName = 'chosen'; - constructor(baseUrl) { - this.baseUrl = baseUrl; + constructor(BaseUrl) { + this.BaseUrl = BaseUrl; } // eslint-disable-next-line @typescript-eslint/no-unused-vars getURL(opts) { - return this.baseUrl; + return this.BaseUrl; } // eslint-disable-next-line diff --git a/src/wagtail_bynder/templates/wagtailadmin/admin_base.html b/src/wagtail_bynder/templates/wagtailadmin/admin_base.html index ef3aa73..dca73b6 100644 --- a/src/wagtail_bynder/templates/wagtailadmin/admin_base.html +++ b/src/wagtail_bynder/templates/wagtailadmin/admin_base.html @@ -6,9 +6,9 @@