Add warning for editing statuses

This commit is contained in:
Sean King 2022-06-11 20:40:53 -06:00
parent 8dac3932fe
commit 87fa7b82fb
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257
3 changed files with 13 additions and 0 deletions

View File

@ -261,6 +261,9 @@ const PostStatusForm = {
uploadFileLimitReached () { uploadFileLimitReached () {
return this.newStatus.files.length >= this.fileLimit return this.newStatus.files.length >= this.fileLimit
}, },
isEdit () {
return typeof this.statusId !== 'undefined' && this.statusId.trim() !== ''
},
...mapGetters(['mergedConfig']), ...mapGetters(['mergedConfig']),
...mapState({ ...mapState({
mobileLayout: state => state.interface.mobileLayout mobileLayout: state => state.interface.mobileLayout

View File

@ -66,6 +66,14 @@
<span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span> <span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span>
<span v-else>{{ $t('post_status.direct_warning_to_all') }}</span> <span v-else>{{ $t('post_status.direct_warning_to_all') }}</span>
</p> </p>
<p
v-if="isEdit"
class="visibility-notice"
>
<span>{{ $t('post_status.edit_remote_warning') }}</span>
<br>
<span>{{ $t('post_status.edit_unsupported_warning') }}</span>
</p>
<div <div
v-if="!disablePreview" v-if="!disablePreview"
class="preview-heading faint" class="preview-heading faint"

View File

@ -216,6 +216,8 @@
"default": "Just landed in L.A.", "default": "Just landed in L.A.",
"direct_warning_to_all": "This post will be visible to all the mentioned users.", "direct_warning_to_all": "This post will be visible to all the mentioned users.",
"direct_warning_to_first_only": "This post will only be visible to the mentioned users at the beginning of the message.", "direct_warning_to_first_only": "This post will only be visible to the mentioned users at the beginning of the message.",
"edit_remote_warning": "Other remote instances may not support editing and unable to receive the latest version of your post.",
"edit_unsupported_warning": "Pleroma currently does not support editing mentions or polls.",
"posting": "Posting", "posting": "Posting",
"post": "Post", "post": "Post",
"preview": "Preview", "preview": "Preview",