Add translation, fix tag display

This commit is contained in:
Angelina Filippova 2020-06-07 01:09:34 +03:00
parent 5554413a7c
commit 2d6ff4d610
3 changed files with 8 additions and 5 deletions

View file

@ -240,7 +240,9 @@ export default {
confirmAccounts: 'Confirm accounts',
resendConfirmation: 'Resend confirmation email',
invalidAccount: 'This account has invalid nickname and can\'t be modified',
invalidNickname: 'invalid nickname'
invalidNickname: 'invalid nickname',
passwordResetTokenGenerated: 'Password reset token was generated:',
linkToResetPassword: 'You can also use this link to reset password:'
},
statuses: {
statuses: 'Statuses',

View file

@ -6,8 +6,8 @@
custom-class="password-reset-token-dialog"
@close="closeResetPasswordDialog">
<div>
<p class="password-reset-token">Password reset token was generated: {{ passwordResetToken }}</p>
<p>You can also use this link to reset password:
<p class="password-reset-token">{{ $t('users.passwordResetTokenGenerated') }} {{ passwordResetToken }}</p>
<p>{{ $t('users.linkToResetPassword') }}
<a :href="passwordResetLink" target="_blank" class="reset-password-link">{{ passwordResetLink }}</a>
</p>
</div>

View file

@ -51,7 +51,7 @@
<td>{{ $t('userProfile.tags') }}</td>
<td>
<span v-if="user.tags.length === 0 || !propertyExists(user, 'tags')"></span>
<el-tag v-for="tag in user.tags" v-else :key="tag" class="user-profile-tag">{{ tag }}</el-tag>
<el-tag v-for="tag in user.tags" v-else :key="tag" class="user-profile-tag">{{ humanizeTag(tag) }}</el-tag>
</td>
</tr>
<tr class="el-table__row">
@ -286,7 +286,8 @@ table {
.user-page-header {
display: flex;
justify-content: space-between;
padding: 0 15px 0 20px;
margin: 22px 15px 22px 20px;
padding: 0;
align-items: center;
h1 {
display: inline