1
0
Fork 0

Make uploadIcon responsive to authorized extensions

Dieser Commit ist enthalten in:
Angus McLeod 2020-10-06 21:05:24 +11:00
Ursprung 6297ddaa03
Commit 94c56ef550

Datei anzeigen

@ -16,6 +16,7 @@ import {
} from "discourse/lib/uploads";
import { cacheShortUploadUrl } from "pretty-text/upload-short-url";
import { alias } from "@ember/object/computed";
import { uploadIcon } from "discourse/lib/uploads";
const uploadMarkdownResolvers = [];
@ -30,7 +31,6 @@ export default ComposerEditor.extend({
focusTarget: "reply",
canWhisper: false,
lastValidatedAt: "lastValidatedAt",
uploadIcon: "upload",
popupMenuOptions: [],
draftStatus: "null",
replyPlaceholder: alias("field.placeholder"),
@ -73,6 +73,11 @@ export default ComposerEditor.extend({
.join(',')
},
@discourseComputed('currentUser')
uploadIcon(currentUser) {
return uploadIcon(false, this.siteSettings);
},
_setUploadPlaceholderSend() {
if (!this.composer.get("reply")) {
this.composer.set("reply", "");