#469 - DM warning text should vary based on BE setting
This commit is contained in:
parent
ac28e8c2f9
commit
c9a9b3122d
4 changed files with 8 additions and 2 deletions
|
@ -179,6 +179,10 @@ const PostStatusForm = {
|
|||
},
|
||||
postFormats () {
|
||||
return this.$store.state.instance.postFormats || []
|
||||
},
|
||||
showDirectWarning () {
|
||||
console.log(this.$store.state.instance)
|
||||
return this.$store.state.instance.safeDM && this.newStatus.visibility === 'direct'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
class="visibility-notice">
|
||||
<router-link :to="{ name: 'user-settings' }">{{ $t('post_status.account_not_locked_warning_link') }}</router-link>
|
||||
</i18n>
|
||||
<p v-if="this.newStatus.visibility == 'direct'" class="visibility-notice">{{ $t('post_status.direct_warning') }}</p>
|
||||
<p v-if="showDirectWarning" class="visibility-notice">{{ $t('post_status.direct_warning') }}</p>
|
||||
<EmojiInput
|
||||
v-if="newStatus.spoilerText || alwaysShowSubject"
|
||||
type="text"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue