Skip to content

Commit 54b4d1a

Browse files
committed
Split User Enabled vs Email verified in admin views
1 parent 1cd4821 commit 54b4d1a

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

packages/sprinkle-core/app/locale/en_US/messages.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@
119119
'TRY_AGAIN' => 'Try again',
120120
'UNACTIVATED' => 'Unactivated',
121121
'UNKNOWN' => 'Unknown',
122+
'UNVERIFIED' => 'Unverified',
122123
'UPDATE' => 'Update',
124+
'VERIFIED' => 'Verified',
123125
'VIEW' => 'View',
124126
'WARNING_CANNOT_UNDONE' => 'This action cannot be undone.',
125127
'YES' => 'Yes',

packages/sprinkle-core/app/locale/fr_FR/messages.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@
119119
'TRY_AGAIN' => 'Réessayer',
120120
'UNACTIVATED' => 'Non activé',
121121
'UNKNOWN' => 'Inconnu',
122+
'UNVERIFIED' => 'Non vérifié',
122123
'UPDATE' => 'Mettre à jour',
124+
'VERIFIED' => 'Vérifié',
123125
'VIEW' => 'Voir',
124126
'WARNING_CANNOT_UNDONE' => 'Cette action ne peut être annulée.',
125127
'YES' => 'Oui',

packages/theme-pink-cupcake/src/components/Pages/Admin/Group/GroupUsers.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ const { slug } = defineProps<{
3434
<UFLabel :severity="Severity.Danger" v-if="item.flag_enabled == false">
3535
{{ $t('DISABLED') }}
3636
</UFLabel>
37-
<UFLabel :severity="Severity.Warning" v-else-if="item.flag_verified == false">
38-
{{ $t('UNACTIVATED') }}
39-
</UFLabel>
4037
<UFLabel :severity="Severity.Success" v-else>
4138
{{ $t('ENABLED') }}
4239
</UFLabel>

packages/theme-pink-cupcake/src/components/Pages/Admin/User/UserInfo.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ const emits = defineEmits(['updated'])
3131
<dl class="uk-description-list" v-if="$checkAccess('view_user_field')">
3232
<dt><font-awesome-icon icon="envelope" /> {{ $t('EMAIL') }}</dt>
3333
<dd class="uk-text-meta">{{ user.email }}</dd>
34+
<dd class="uk-text-meta">
35+
<UFLabel :severity="Severity.Warning" v-if="user.flag_verified == false">
36+
{{ $t('UNVERIFIED') }}
37+
</UFLabel>
38+
<UFLabel :severity="Severity.Success" v-else>
39+
{{ $t('VERIFIED') }}
40+
</UFLabel>
41+
</dd>
3442
<dt><font-awesome-icon icon="users" /> {{ $t('GROUP') }}</dt>
3543
<dd class="uk-text-meta" v-if="user.group">
3644
<router-link :to="{ name: 'admin.group', params: { slug: user.group.slug } }">
@@ -47,9 +55,6 @@ const emits = defineEmits(['updated'])
4755
<UFLabel :severity="Severity.Danger" v-if="user.flag_enabled == false">
4856
{{ $t('DISABLED') }}
4957
</UFLabel>
50-
<UFLabel :severity="Severity.Warning" v-else-if="user.flag_verified == false">
51-
{{ $t('UNACTIVATED') }}
52-
</UFLabel>
5358
<UFLabel :severity="Severity.Success" v-else>
5459
{{ $t('ACTIVE') }}
5560
</UFLabel>

packages/theme-pink-cupcake/src/views/Admin/UsersPage.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import UserPasswordResetModal from '../../components/Pages/Admin/User/UserPasswo
2222
<UFSprunjeHeader sort="name">{{ $t('USER') }}</UFSprunjeHeader>
2323
<UFSprunjeHeader sort="last_activity">{{ $t('ACTIVITY.LAST') }}</UFSprunjeHeader>
2424
<UFSprunjeHeader sort="status">{{ $t('STATUS') }}</UFSprunjeHeader>
25+
<UFSprunjeHeader sort="status">{{ $t('EMAIL') }}</UFSprunjeHeader>
2526
<UFSprunjeHeader>{{ $t('ACTIONS') }}</UFSprunjeHeader>
2627
</template>
2728

@@ -46,13 +47,18 @@ import UserPasswordResetModal from '../../components/Pages/Admin/User/UserPasswo
4647
<UFLabel :severity="Severity.Danger" v-if="item.flag_enabled == false">
4748
{{ $t('DISABLED') }}
4849
</UFLabel>
49-
<UFLabel :severity="Severity.Warning" v-else-if="item.flag_verified == false">
50-
{{ $t('UNACTIVATED') }}
51-
</UFLabel>
5250
<UFLabel :severity="Severity.Success" v-else>
5351
{{ $t('ACTIVE') }}
5452
</UFLabel>
5553
</UFSprunjeColumn>
54+
<UFSprunjeColumn>
55+
<UFLabel :severity="Severity.Warning" v-if="item.flag_verified == false">
56+
{{ $t('UNVERIFIED') }}
57+
</UFLabel>
58+
<UFLabel :severity="Severity.Success" v-else>
59+
{{ $t('VERIFIED') }}
60+
</UFLabel>
61+
</UFSprunjeColumn>
5662
<UFSprunjeColumn>
5763
<button class="uk-button uk-button-primary uk-text-nowrap" type="button">
5864
{{ $t('ACTIONS') }} <span uk-drop-parent-icon></span>

0 commit comments

Comments
 (0)