From 7f065d91a1bb25c24d46fbdfcb8abbd3a4c2007d Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 21 Dec 2021 15:15:11 +1000 Subject: [PATCH 1/2] FIX: Use uppy-image-uploader instead of image-uploader The image-uploader component is deprecated and will be removed shortly in Discourse core. The new component is functionally equivalent. --- .../discourse/templates/components/wizard-custom-field.hbs | 5 +++-- .../discourse/templates/components/wizard-custom-step.hbs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs index 27ea19ee..39c02c1d 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs @@ -40,12 +40,13 @@
- {{image-uploader + {{uppy-image-uploader imageUrl=field.image onUploadDone=(action "imageUploadDone") onUploadDeleted=(action "imageUploadDeleted") type="wizard-step" - class="no-repeat contain-image"}} + class="no-repeat contain-image" + id=(concat "wizard-field-" field.id "-image-upload")}}
diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-step.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-step.hbs index 85adfe8a..ad4623c2 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-step.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-step.hbs @@ -14,12 +14,13 @@
- {{image-uploader + {{uppy-image-uploader imageUrl=step.banner onUploadDone=(action "bannerUploadDone") onUploadDeleted=(action "bannerUploadDeleted") type="wizard-banner" - class="no-repeat contain-image"}} + class="no-repeat contain-image" + id=(concat "wizard-step-" step.id "-banner-upload")}}
From b74dfcc3f8c307c315c14c61ad923aa6672ad6a5 Mon Sep 17 00:00:00 2001 From: angusmcleod Date: Wed, 22 Dec 2021 12:12:48 +0800 Subject: [PATCH 2/2] Increment patch version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 36b5c214..35757ed5 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Create custom wizards -# version: 1.16.1 +# version: 1.16.2 # authors: Angus McLeod # url: https://github.com/paviliondev/discourse-custom-wizard # contact emails: angus@thepavilion.io