[admin] fix admin panel stuck if there's a ban proposal without a profile

This commit is contained in:
Andrea Vos 2022-11-27 11:43:00 +01:00
parent 086ef11470
commit 7422bc05f5
2 changed files with 2 additions and 2 deletions

View File

@ -1522,7 +1522,7 @@ footer:
visitDuration: 'Średnia długość odwiedzin'
uptime: 'Uptime'
responseTime: 'Średni czas odpowiedzi serwera'
month: 'miesiąc'
month: 'miesiąc'
notFound:
message: 'Strony nie znaleziono'

View File

@ -239,7 +239,7 @@
<tr v-for="proposal in banProposals">
<td>
<a :href="`https://pronouns.page/@${proposal.username}`" target="_blank" rel="noopener">@{{proposal.username}}</a>
<ul class="list-unstyled">
<ul class="list-unstyled" v-if="proposal.profiles">
<li v-for="locale in proposal.profiles.split(',')" v-if="locales[locale]">
<LocaleLink :link="`/@${proposal.username}`" :locale="locale">
{{ locales[locale].name }}