Make uploadIcon responsive to authorized extensions
Dieser Commit ist enthalten in:
Ursprung
6297ddaa03
Commit
94c56ef550
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
|
@ -16,6 +16,7 @@ import {
|
||||||
} from "discourse/lib/uploads";
|
} from "discourse/lib/uploads";
|
||||||
import { cacheShortUploadUrl } from "pretty-text/upload-short-url";
|
import { cacheShortUploadUrl } from "pretty-text/upload-short-url";
|
||||||
import { alias } from "@ember/object/computed";
|
import { alias } from "@ember/object/computed";
|
||||||
|
import { uploadIcon } from "discourse/lib/uploads";
|
||||||
|
|
||||||
const uploadMarkdownResolvers = [];
|
const uploadMarkdownResolvers = [];
|
||||||
|
|
||||||
|
@ -30,7 +31,6 @@ export default ComposerEditor.extend({
|
||||||
focusTarget: "reply",
|
focusTarget: "reply",
|
||||||
canWhisper: false,
|
canWhisper: false,
|
||||||
lastValidatedAt: "lastValidatedAt",
|
lastValidatedAt: "lastValidatedAt",
|
||||||
uploadIcon: "upload",
|
|
||||||
popupMenuOptions: [],
|
popupMenuOptions: [],
|
||||||
draftStatus: "null",
|
draftStatus: "null",
|
||||||
replyPlaceholder: alias("field.placeholder"),
|
replyPlaceholder: alias("field.placeholder"),
|
||||||
|
@ -73,6 +73,11 @@ export default ComposerEditor.extend({
|
||||||
.join(',')
|
.join(',')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@discourseComputed('currentUser')
|
||||||
|
uploadIcon(currentUser) {
|
||||||
|
return uploadIcon(false, this.siteSettings);
|
||||||
|
},
|
||||||
|
|
||||||
_setUploadPlaceholderSend() {
|
_setUploadPlaceholderSend() {
|
||||||
if (!this.composer.get("reply")) {
|
if (!this.composer.get("reply")) {
|
||||||
this.composer.set("reply", "");
|
this.composer.set("reply", "");
|
||||||
|
|
Laden …
In neuem Issue referenzieren