From 58f0c71ee9d1daa7823cfb4accfca449045c9614 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 25 Sep 2020 21:16:39 +0300 Subject: [PATCH] Rename need_confirmed -> unconfirmed --- src/store/modules/users.js | 6 +++--- src/views/users/components/UsersFilter.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/modules/users.js b/src/store/modules/users.js index 1fe39f1b..5e1fff1a 100644 --- a/src/store/modules/users.js +++ b/src/store/modules/users.js @@ -37,7 +37,7 @@ const users = { active: false, need_approval: false, deactivated: false, - need_confirmed: false + unconfirmed: false }, passwordResetToken: { token: '', @@ -155,7 +155,7 @@ const users = { active: false, need_approval: false, deactivated: false, - need_confirmed: false + unconfirmed: false }) }, async ClearFilters({ commit, dispatch, state }) { @@ -317,7 +317,7 @@ const users = { active: false, need_approval: false, deactivated: false, - need_confirmed: false + unconfirmed: false } const currentFilters = { ...defaultFilters, ...filters } commit('SET_USERS_FILTERS', currentFilters) diff --git a/src/views/users/components/UsersFilter.vue b/src/views/users/components/UsersFilter.vue index ff54e27d..a04cf971 100644 --- a/src/views/users/components/UsersFilter.vue +++ b/src/views/users/components/UsersFilter.vue @@ -14,7 +14,7 @@ {{ $t('usersFilter.active') }} {{ $t('usersFilter.deactivated') }} {{ $t('usersFilter.pending') }} - {{ $t('usersFilter.unconfirmed') }} + {{ $t('usersFilter.unconfirmed') }} @@ -44,7 +44,7 @@ export default { const indexOfActive = this.$data.value.indexOf('active') const indexOfDeactivated = this.$data.value.indexOf('deactivated') const indexOfPending = this.$data.value.indexOf('need_approval') - const indexOfUnconfirmed = this.$data.value.indexOf('need_confirmed') + const indexOfUnconfirmed = this.$data.value.indexOf('unconfirmed') if (this.$data.value.length === filtersQuantity) { return []