Il creatore del Gruppo deve già appartenere al Gruppo stesso
Non permettere di aggiungere un Gruppo con lo stesso nome o codice quando cancelli un Gruppo, cancella anche tutti i riferimenti sugli utenti di quel gruppo. Errore caricamento Immagini !
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineComponent } from 'vue'
|
||||
|
||||
import { CCopyBtn } from '../CCopyBtn'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CVerifyEmail',
|
||||
@@ -9,14 +10,8 @@ export default defineComponent({
|
||||
props: {},
|
||||
setup() {
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
function isEmailVerified(): boolean {
|
||||
return userStore.my.verified_email!
|
||||
}
|
||||
|
||||
return {
|
||||
isEmailVerified,
|
||||
tools,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="text-center q-gutter-sm q-ma-sm clBorderWarning">
|
||||
<q-chip v-if="isEmailVerified()" color="positive" text-color="white" icon="email">
|
||||
<q-chip v-if="tools.isEmailVerified()" color="positive" text-color="white" icon="email">
|
||||
{{ `Email ` + $t('pages.statusreg.verified') }}
|
||||
</q-chip>
|
||||
<q-chip v-else color="negative" text-color="white" icon="email">
|
||||
{{ `Email ` + $t('pages.statusreg.nonverified') }}
|
||||
</q-chip>
|
||||
<div v-if="!isEmailVerified()" v-html="$t('components.authentication.email_verification.link_sent', {botname: $t('ws.botname') })">
|
||||
<div v-if="!tools.isEmailVerified()" v-html="$t('components.authentication.email_verification.link_sent', {botname: tools.getBotName() })">
|
||||
|
||||
</div>
|
||||
<div v-if="!isEmailVerified()" v-html="$t('components.authentication.email_verification.se_non_ricevo')">
|
||||
<div v-if="!tools.isEmailVerified()" v-html="$t('components.authentication.email_verification.se_non_ricevo')">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user