diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 8c90322fc521f12ce09a0a001dacf66055980f31..7aa0e7c442d928f125926de84fa5d8c8fce72e09 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -2,6 +2,14 @@ <div class="post-status-form"> <form @submit.prevent="postStatus(newStatus)"> <div class="form-group" > + <i18n + v-if="!this.$store.state.users.currentUser.locked && this.newStatus.visibility == 'private'" + path="post_status.account_not_locked_warning" + tag="p" + class="visibility-notice"> + <router-link to="/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> <input v-if="scopeOptionsEnabled" type="text" @@ -102,6 +110,14 @@ } } +.visibility-notice { + padding: .5em; + border: 1px solid $fallback--faint; + border: 1px solid var(--faint, $fallback--faint); + border-radius: $fallback--inputRadius; + border-radius: var(--inputRadius, $fallback--inputRadius); +} + .post-status-form, .login { .form-bottom { display: flex; diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 96eaac4a2ead10c22266dea8827f89b293c1298f..70a06ec1b20169dec43906227934ef7720179dfd 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -118,6 +118,9 @@ const de = { post_status: { posting: 'Veröffentlichen', default: 'Sitze gerade im Hofbräuhaus.', + account_not_locked_warning: 'Dein Profil ist nicht {0}. Wer dir folgen will, kann das jederzeit tun und dann auch deine privaten Beiträge sehen.', + account_not_locked_warning_link: 'gesperrt', + direct_warning: 'Dieser Beitrag wird nur für die erwähnten Nutzer sichtbar sein.', scope: { public: 'Öffentlich - Beitrag an öffentliche Zeitleisten', unlisted: 'Nicht gelistet - Nicht in öffentlichen Zeitleisten anzeigen', @@ -357,6 +360,9 @@ const en = { posting: 'Posting', content_warning: 'Subject (optional)', default: 'Just landed in L.A.', + account_not_locked_warning: 'Your account is not {0}. Anyone can follow you to view your follower-only posts.', + account_not_locked_warning_link: 'locked', + direct_warning: 'This post will only be visible to all the mentioned users.', scope: { public: 'Public - Post to public timelines', unlisted: 'Unlisted - Do not post to public timelines',