diff --git a/src/lang/en.js b/src/lang/en.js
index f4a9ee73..76ef91e4 100644
--- a/src/lang/en.js
+++ b/src/lang/en.js
@@ -268,7 +268,8 @@ export default {
invalidAccount: 'This account has invalid nickname and can\'t be modified',
invalidNickname: 'invalid nickname',
passwordResetTokenGenerated: 'Password reset token was generated:',
- linkToResetPassword: 'You can also use this link to reset password:'
+ linkToResetPassword: 'You can also use this link to reset password:',
+ registrationReason: 'Registration Reason'
},
statuses: {
statuses: 'Statuses',
diff --git a/src/views/users/index.vue b/src/views/users/index.vue
index c3b9bcf6..32adca8b 100644
--- a/src/views/users/index.vue
+++ b/src/views/users/index.vue
@@ -76,11 +76,20 @@
{{ isDesktop ? $t('users.unapproved') : getFirstLetter($t('users.unapproved')) }}
-
- "{{ scope.row.registration_reason | truncate(100, '...') }}"
-
-
+
+
+
+
+
+ "{{ scope.row.registration_reason | truncate(100, '...') }}"
+
+
+
@@ -134,11 +143,7 @@ export default {
},
filters: {
truncate: function(text, length, suffix) {
- if (text.length > length) {
- return text.substring(0, length) + suffix
- } else {
- return text
- }
+ return text.length < length ? text : text.substring(0, length) + suffix
}
},
data() {
@@ -233,6 +238,9 @@ export default {
propertyExists(account, property) {
return account[property]
},
+ regReason(reason) {
+ return reason && reason.length > 0
+ },
showDeactivatedButton(id) {
return this.$store.state.user.id !== id
}
@@ -278,6 +286,9 @@ export default {
.password-reset-token-dialog {
width: 50%
}
+.reason-tooltip {
+ max-width: 450px;
+}
.reset-password-link {
text-decoration: underline;
}
@@ -291,6 +302,9 @@ export default {
margin: 10px 0 0 15px;
height: 40px;
}
+ .cell {
+ word-break: break-word;
+ }
.el-table__row:hover {
cursor: pointer;
}
@@ -319,9 +333,6 @@ export default {
color: gray;
font-size: 28px;
}
- .reason-text {
- word-break: normal;
- }
}
@media only screen and (max-width:480px) {