mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
FEATURE: Use uppy for tags uploader (#14821)
No other caveats or fixes.
This commit is contained in:
parent
fe8087e523
commit
18dc2c5040
|
@ -1,14 +1,15 @@
|
|||
import Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import UploadMixin from "discourse/mixins/upload";
|
||||
import UppyUploadMixin from "discourse/mixins/uppy-upload";
|
||||
import { alias } from "@ember/object/computed";
|
||||
import bootbox from "bootbox";
|
||||
|
||||
export default Component.extend(UploadMixin, {
|
||||
export default Component.extend(UppyUploadMixin, {
|
||||
type: "csv",
|
||||
uploadUrl: "/tags/upload",
|
||||
addDisabled: alias("uploading"),
|
||||
elementId: "tag-uploader",
|
||||
preventDirectS3Uploads: true,
|
||||
|
||||
validateUploadedFilesOptions() {
|
||||
return { csvOnly: true };
|
||||
|
|
Loading…
Reference in New Issue
Block a user