Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
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.
Dieser Commit ist enthalten in:
Ursprung
517da30a4c
Commit
7f065d91a1
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
|
@ -40,12 +40,13 @@
|
||||||
<label>{{i18n "admin.wizard.field.image"}}</label>
|
<label>{{i18n "admin.wizard.field.image"}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
{{image-uploader
|
{{uppy-image-uploader
|
||||||
imageUrl=field.image
|
imageUrl=field.image
|
||||||
onUploadDone=(action "imageUploadDone")
|
onUploadDone=(action "imageUploadDone")
|
||||||
onUploadDeleted=(action "imageUploadDeleted")
|
onUploadDeleted=(action "imageUploadDeleted")
|
||||||
type="wizard-step"
|
type="wizard-step"
|
||||||
class="no-repeat contain-image"}}
|
class="no-repeat contain-image"
|
||||||
|
id=(concat "wizard-field-" field.id "-image-upload")}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,13 @@
|
||||||
<label>{{i18n "admin.wizard.step.banner"}}</label>
|
<label>{{i18n "admin.wizard.step.banner"}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
{{image-uploader
|
{{uppy-image-uploader
|
||||||
imageUrl=step.banner
|
imageUrl=step.banner
|
||||||
onUploadDone=(action "bannerUploadDone")
|
onUploadDone=(action "bannerUploadDone")
|
||||||
onUploadDeleted=(action "bannerUploadDeleted")
|
onUploadDeleted=(action "bannerUploadDeleted")
|
||||||
type="wizard-banner"
|
type="wizard-banner"
|
||||||
class="no-repeat contain-image"}}
|
class="no-repeat contain-image"
|
||||||
|
id=(concat "wizard-step-" step.id "-banner-upload")}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren