Add warning/info text on appriopriate status scopes

This commit is contained in:
Ole Bertram 2018-06-23 22:10:13 +02:00
parent 05bc6fa8e8
commit 44428e8b09
No known key found for this signature in database
GPG key ID: E1B751CB4B7F8D28
2 changed files with 22 additions and 0 deletions

View file

@ -2,6 +2,14 @@
<div class="post-status-form"> <div class="post-status-form">
<form @submit.prevent="postStatus(newStatus)"> <form @submit.prevent="postStatus(newStatus)">
<div class="form-group" > <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 <input
v-if="scopeOptionsEnabled" v-if="scopeOptionsEnabled"
type="text" 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 { .post-status-form, .login {
.form-bottom { .form-bottom {
display: flex; display: flex;

View file

@ -118,6 +118,9 @@ const de = {
post_status: { post_status: {
posting: 'Veröffentlichen', posting: 'Veröffentlichen',
default: 'Sitze gerade im Hofbräuhaus.', 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: { scope: {
public: 'Öffentlich - Beitrag an öffentliche Zeitleisten', public: 'Öffentlich - Beitrag an öffentliche Zeitleisten',
unlisted: 'Nicht gelistet - Nicht in öffentlichen Zeitleisten anzeigen', unlisted: 'Nicht gelistet - Nicht in öffentlichen Zeitleisten anzeigen',
@ -357,6 +360,9 @@ const en = {
posting: 'Posting', posting: 'Posting',
content_warning: 'Subject (optional)', content_warning: 'Subject (optional)',
default: 'Just landed in L.A.', 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: { scope: {
public: 'Public - Post to public timelines', public: 'Public - Post to public timelines',
unlisted: 'Unlisted - Do not post to public timelines', unlisted: 'Unlisted - Do not post to public timelines',