Skip to content

Commit

Permalink
Fix profile edit page.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 13, 2024
1 parent 32d5823 commit 09145b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default Vue.extend({
email: this.form.email,
};
if (this.form.passwordLogin) {
if (this.form.passwordLogin && this.form.password) {
if (this.form.password !== this.form.password2) {
this.$utils.toast(this.$t('users.passwordMismatch'), 'is-danger');
return;
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/views/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@
<a :href="`/users/${props.row.id}`" @click.prevent="showEditForm(props.row)"
:class="{ 'has-text-grey': props.row.status === 'disabled' }">
{{ props.row.username }}
<div class="has-text-grey is-size-7">{{ props.row.name }}</div>
</a>
<b-tag v-if="props.row.status === 'disabled'">
{{ $t(`users.status.${props.row.status}`) }}
</b-tag>
<div class="has-text-grey is-size-7">
{{ props.row.name }}
</div>
</b-table-column>

<b-table-column v-slot="props" field="status" :label="$tc('users.role')" header-class="cy-status" sortable
Expand All @@ -54,9 +59,6 @@
<b-icon icon="code" />
{{ $t(`users.type.${props.row.type}`) }}
</b-tag>
<b-tag v-if="props.row.status === 'disabled'">
{{ $t(`users.status.${props.row.status}`) }}
</b-tag>
</b-table-column>

<b-table-column v-slot="props" field="name" :label="$t('subscribers.email')" header-class="cy-name" sortable
Expand Down

0 comments on commit 09145b4

Please sign in to comment.