mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-09 10:13:42 +00:00
fix "always show content warning" setting
This commit is contained in:
parent
34e2800f59
commit
ea9ad4d600
1 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ const PostStatusForm = {
|
||||||
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
|
statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { postContentType: contentType, sensitiveByDefault, sensitiveIfSubject, interfaceLanguage } = this.$store.getters.mergedConfig
|
const { postContentType: contentType, sensitiveByDefault, sensitiveIfSubject, interfaceLanguage, alwaysShowSubjectInput } = this.$store.getters.mergedConfig
|
||||||
|
|
||||||
let statusParams = {
|
let statusParams = {
|
||||||
spoilerText: this.subject || '',
|
spoilerText: this.subject || '',
|
||||||
|
@ -200,8 +200,8 @@ const PostStatusForm = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// When first loading the form, hide the subject (CW) field if it's disabled or doesn't have a starting value.
|
// When first loading the form, hide the subject (CW) field if it's disabled or doesn't have a starting value.
|
||||||
// "disableSubject" seems to take priority over "alwaysShowSubject"
|
// "disableSubject" seems to take priority over "alwaysShowSubjectInput".
|
||||||
const showSubject = !this.disableSubject && (statusParams.spoilerText || this.alwaysShowSubject)
|
const showSubject = !this.disableSubject && (statusParams.spoilerText || alwaysShowSubjectInput)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dropFiles: [],
|
dropFiles: [],
|
||||||
|
|
Loading…
Reference in a new issue