Add warning for editing statuses

This commit is contained in:
Sean King 2022-06-11 20:40:53 -06:00 committed by FloatingGhost
parent 3ee5c2387d
commit b1d89e47de
2 changed files with 11 additions and 0 deletions

View file

@ -258,6 +258,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"