diff options
| author | Sean King <seanking2919@protonmail.com> | 2022-06-11 20:40:53 -0600 |
|---|---|---|
| committer | Sean King <seanking2919@protonmail.com> | 2022-06-11 20:40:53 -0600 |
| commit | 87fa7b82fb597ea597ee228c97cb2350a7d6c044 (patch) | |
| tree | 0b9a72444d5e88455eb928e4978ed10d4d6ca339 | |
| parent | 8dac3932fed30e4238c2a7ef9cef8255a5c83a5a (diff) | |
Add warning for editing statuses
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 3 | ||||
| -rw-r--r-- | src/components/post_status_form/post_status_form.vue | 8 | ||||
| -rw-r--r-- | src/i18n/en.json | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index d73219ad..ae81bfa6 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -261,6 +261,9 @@ const PostStatusForm = { uploadFileLimitReached () { return this.newStatus.files.length >= this.fileLimit }, + isEdit () { + return typeof this.statusId !== 'undefined' && this.statusId.trim() !== '' + }, ...mapGetters(['mergedConfig']), ...mapState({ mobileLayout: state => state.interface.mobileLayout diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 60cab745..650b5b8c 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -66,6 +66,14 @@ <span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span> <span v-else>{{ $t('post_status.direct_warning_to_all') }}</span> </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 v-if="!disablePreview" class="preview-heading faint" diff --git a/src/i18n/en.json b/src/i18n/en.json index fa773982..a303c0e8 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -216,6 +216,8 @@ "default": "Just landed in L.A.", "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.", + "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", "post": "Post", "preview": "Preview", |
