[ban] warn admins that the message will be visible

This commit is contained in:
Andrea Vos 2021-07-10 12:03:21 +02:00
parent 64281926a8
commit 33deea50f8
11 changed files with 11 additions and 1 deletions

View File

@ -502,6 +502,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -584,6 +584,7 @@ mode:
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -512,6 +512,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -493,6 +493,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -506,6 +506,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -1112,6 +1112,7 @@ mode:
ban:
reason: 'Powód blokady'
visible: '(to będzie widoczne dla osoby zbanowanej)'
action: 'Zablokuj tę osobę'
confirm: 'Czy na pewno chcesz zbanować @%username%?'
header: 'Twoje konto jest zablokowane. Twoje profile nie są widoczne publicznie.'

View File

@ -510,6 +510,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -1082,6 +1082,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -523,6 +523,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -491,6 +491,7 @@ mode:
# TODO
ban:
reason: 'Ban reason'
visible: '(this will be visible to the user)'
action: 'Ban this person'
confirm: 'Are you sure you want to ban @%username%?'
header: 'You''re banned. Your profile will not be shown to anyone.'

View File

@ -134,7 +134,7 @@
<client-only>
<section v-if="$isGranted('users')">
<div class="alert alert-warning">
<textarea v-model="profile.bannedReason" class="form-control" rows="3" :placeholder="$t('ban.reason')" :disabled="saving"></textarea>
<textarea v-model="profile.bannedReason" class="form-control" rows="3" :placeholder="$t('ban.reason') + ' ' + $t('ban.visible')" :disabled="saving"></textarea>
<button class="btn btn-danger d-block w-100 mt-2" :disabled="saving" @click="ban">
<Icon v="ban"/>
{{$t('ban.action')}}