Fix profile edit page.

This commit is contained in:
Kailash Nadh 2024-06-16 14:07:02 +05:30
parent 28e948b82f
commit aee81a0efc
2 changed files with 7 additions and 5 deletions

View file

@ -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;

View file

@ -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
@ -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